code
stringlengths
10
1.34M
language
stringclasses
1 value
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package packet import ( "bytes" "code.google.com/p/go.crypto/openpgp/errors" "io" "io/ioutil" ) // OpaquePacket represents an OpenPGP packet as raw, unpar...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package packet import ( "crypto" "crypto/rand" "io" "time" ) // Config collects a number of parameters along with sensible defaults. // A nil *Config is v...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package errors contains common error types for the OpenPGP packages. package errors import ( "strconv" ) // A StructuralError is returned when OpenPGP dat...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package openpgp import ( "code.google.com/p/go.crypto/openpgp/armor" "code.google.com/p/go.crypto/openpgp/errors" "code.google.com/p/go.crypto/openpgp/packe...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package elgamal implements ElGamal encryption, suitable for OpenPGP, // as specified in "A Public-Key Cryptosystem and a Signature Scheme Based on // Discret...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package armor import ( "encoding/base64" "io" ) var armorHeaderSep = []byte(": ") var blockEnd = []byte("\n=") var newline = []byte("\n") var armorEndOfLine...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package armor implements OpenPGP ASCII Armor, see RFC 4880. OpenPGP Armor is // very similar to PEM except that it has an additional CRC checksum. package ar...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package openpgp import ( "code.google.com/p/go.crypto/openpgp/armor" "code.google.com/p/go.crypto/openpgp/errors" "code.google.com/p/go.crypto/openpgp/packe...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package openpgp import "hash" // NewCanonicalTextHash reformats text written to it into the canonical // form and then applies the hash h. See RFC 4880, sect...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing // algorithm. See http://www.usenix.org/event/usenix99/provos/provos.pdf package bcry...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bcrypt import "encoding/base64" const alphabet = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" var bcEncoding = base64.NewEncodi...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package pbkdf2 implements the key derivation function PBKDF2 as defined in RFC 2898 / PKCS #5 v2.0. A key derivation function is useful when encrypting data...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package twofish implements Bruce Schneier's Twofish encryption algorithm. package twofish // Twofish is defined in http://www.schneier.com/paper-twofish-pap...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto/dsa" "crypto/ecdsa" "crypto/rsa" "errors" "fmt" "math/big" "sync" ) // These are string constants in the SSH protocol. con...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "errors" "fmt" "io" "net" "sync" "time" ) // Listen requests the remote peer open a listening socket // on addr. Incoming connectio...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "io" "sync" ) // buffer provides a linked list buffer for data exchange // between producer and consumer. Theoretically the buffer is /...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto/dsa" "crypto/ecdsa" "crypto/rsa" "time" ) // These constants from [PROTOCOL.certkeys] represent the algorithm names // for ce...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This package contains integration tests for the // code.google.com/p/go.crypto/ssh package. package test
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build linux,!appengine // Package terminal provides support functions for dealing with terminals, as // commonly found on UNIX systems. // // Putting a ter...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package terminal import ( "io" "sync" ) // EscapeCodes contains escape sequences that can be written to the terminal in // order to achieve different styles...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "errors" "fmt" "io" ) // authenticate authenticates with the remote server. See RFC 4252. func (c *ClientConn) authenticate(session []...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh // Session implements an interactive session described in // "RFC 4254, section 6". import ( "bytes" "errors" "fmt" "io" "io/ioutil" ) type ...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh // Message authentication support import ( "crypto/hmac" "crypto/sha1" "hash" ) type macMode struct { keySize int new func(key []byte) h...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "bytes" "encoding/binary" "io" "math/big" "reflect" ) // These are SSH message type numbers. They are scattered around several // do...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "bytes" "crypto/dsa" "crypto/ecdsa" "crypto/elliptic" "crypto/rsa" "encoding/base64" "math/big" ) // These constants represent the...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh // A Terminal is capable of parsing and generating virtual terminal // data from an SSH client. type Terminal interface { ReadLine() (line string,...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "bufio" "crypto" "crypto/cipher" "crypto/subtle" "encoding/binary" "errors" "hash" "io" "net" "sync" ) const ( packetSizeMulti...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto/aes" "crypto/cipher" "crypto/rc4" ) // streamDump is used to dump the initial keystream for stream ciphers. It is a // a write...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "errors" "fmt" "io" "sync" "sync/atomic" ) // extendedDataTypeCode identifies an OpenSSL extended data type. See RFC 4254, // sectio...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "bytes" "crypto" "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/binary" "encoding/pem" "errors" "io" "math/big" "net" "syn...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "encoding/base64" "errors" "io" "sync" ) // See [PROTOCOL.agent], section 3. const ( // 3.2 Requests from client to agent for protoc...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package ssh implements an SSH client and server. SSH is a transport security protocol, an authentication protocol and a family of application protocols. The...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto" "crypto/rand" "encoding/binary" "errors" "fmt" "io" "math/big" "net" "sync" ) // clientVersion is the fixed identificat...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package ocsp parses OCSP responses as specified in RFC 2560. OCSP responses // are signed messages attesting to the validity of a certificate for a small // ...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The pcap package provides support for using the C pcap library from within a // Go program. Not...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkt /* #include <netinet/ip.h> #include <netinet/in.h> */ import "C" import ( "fmt" "net" ...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkt /* #include <netinet/in.h> #include <netinet/tcp.h> */ import "C" import ( "fmt" "refl...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The pkt package provides access to the packet internals. // package pkt /...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkt import ( "fmt" "strconv" "strings" ) // The point of a HttpHdr is to ease the mappin...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkt /* #include <net/ethernet.h> #include <netinet/ether.h> #include <netinet/in.h> */ impor...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkt // C constants to be used in unit tests. Go's test runner will not run files // that im...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkt /* #include <netinet/ip6.h> */ import "C" import ( "f...
Go
// Copyright 2012 The golibpcap Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This serves as an example of how to use of the Loop method for tracing a // network interface. Basically it is a very limited tcpdump. // // Example ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ioutil2 import ( "io" "io/ioutil" "os" "path" ) // Write file to temp and atomically move when everything else succeeds. func WriteFileAtomic(filenam...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysql /* #cgo pkg-config: gomysql #include <stdlib.h> #include "vtmysql.h" */ import "C" import ( "fmt" "unsafe" "code.google.com/p/vitess/go/hack" ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package proto import ( "code.google.com/p/vitess/go/sqltypes" ) type Field struct { Name string Type int64 } type QueryResult struct { Fields []Field ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package proto import ( "bytes" "code.google.com/p/vitess/go/bson" "code.google.com/p/vitess/go/bytes2" "code.google.com/p/vitess/go/sqltypes" ) func Marshal...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package timer provides timer functionality that can be controlled by the user. You start the timer by providing it a callback function, which it will call at...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // relog provides an alternate logger api with support for logging // levels. Although flexible, the recommended usage is to create a // logger object, set it as ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk import ( rpc "code.google.com/p/vitess/go/rpcplus" ) // defines the RPC services for zkocc // the service name to use is 'ZkReader' type ZkReader int...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk // Contains the bson custom marshaler / unmarshaler. // Note this is not required, but makes the code faster. import ( "bytes" "code.google.com/p/vi...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk import ( "math/rand" "strings" "time" "launchpad.net/gozk/zookeeper" ) type Stat interface { Czxid() int64 Mzxid() int64 CTime() time.Time MT...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk import ( "encoding/json" "flag" "fmt" "log" "os" "sort" "strings" "time" // "launchpad.net/gozk/zookeeper" ) const ( DEFAULT_BASE_TIMEOUT = ...
Go
// Copyright 2013, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package fakezk is a pretty complete mock implementation of a // Zookeper connection (see go/zk/zk.Conn). All operations // work as expected with the exceptions ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk import ( "fmt" "log" "os" "strconv" "time" "code.google.com/p/vitess/go/sync2" "launchpad.net/gozk/zookeeper" ) // Every blocking call into CG...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Commands for controlling an external zookeeper process. */ package zkctl import ( "bytes" "errors" "fmt" "io/ioutil" "net" "os" "os/exec" "path" "str...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Generate zoo.conf files from templates. */ package zkctl import ( "bytes" "fmt" "io/ioutil" "path" "strconv" "strings" "text/template" "code.google...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk import ( "code.google.com/p/vitess/go/rpcplus" "code.google.com/p/vitess/go/rpcwrap/bsonrpc" "fmt" "launchpad.net/gozk/zookeeper" "log" "math/ran...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Emulate a "global" namespace across n zk quorums. */ package zk import ( "fmt" "sort" "time" "launchpad.net/gozk/zookeeper" ) const ( DEFAULT_MAX_RETRIE...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zkns import ( "encoding/json" "fmt" "net" "strings" "code.google.com/p/vitess/go/netutil" "code.google.com/p/vitess/go/zk" ) type ZknsAddr struct ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zkocc import ( "bytes" "flag" "fmt" "sync" "time" "code.google.com/p/vitess/go/relog" "code.google.com/p/vitess/go/stats" "code.google.com/p/vite...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // cache for zkocc package zkocc import ( "fmt" "sync" "time" "code.google.com/p/vitess/go/relog" "code.google.com/p/vitess/go/zk" "launchpad.net/gozk/zook...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zkocc import ( "bytes" "errors" "expvar" "fmt" "strings" "sync" "code.google.com/p/vitess/go/relog" "code.google.com/p/vitess/go/stats" "code.go...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk // contains the structures used for RPC calls to zkocc. import ( "time" ) type ZkStat struct { czxid int64 mzxid int64 cTime ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk import ( "errors" "fmt" "log" "math/rand" "os" "path" "sort" "strings" "sync" "time" "launchpad.net/gozk/zookeeper" ) var ( // This error...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zk import ( "bytes" "fmt" "log" "math/rand" "sync" "time" "code.google.com/p/vitess/go/stats" "launchpad.net/gozk/zookeeper" ) func init() { ra...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cgzip /* #cgo pkg-config: zlib #include "zlib.h" */ import "C" import ( "hash" "unsafe" ) type adler32Hash struct { adler C.uLong } // an empty buf...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cgzip // See http://www.zlib.net/zlib_how.html for more information on this /* #cgo pkg-config: zlib #include "zlib.h" // deflateInit2 is a macro, so u...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cgzip /* #cgo pkg-config: zlib #include "zlib.h" // inflateInit2 is a macro, so using a wrapper function int cgzipInflateInit(z_stream *strm) { strm...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cgzip /* #cgo pkg-config: zlib #include "zlib.h" */ import "C" import ( "hash" "unsafe" ) type crc32Hash struct { crc C.uLong } // an empty buffer ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package dbconfigs is reusable by vt tools to load // the db configs file. package dbconfigs import ( "encoding/json" "flag" "code.google.com/p/vitess/go/js...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sqlparser import ( "fmt" "strconv" "code.google.com/p/vitess/go/relog" "code.google.com/p/vitess/go/sqltypes" "code.google.com/p/vitess/go/vt/schema...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sqlparser import ( "bytes" "fmt" "code.google.com/p/vitess/go/sqltypes" ) type ParserError struct { Message string } func NewParserError(format str...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sqlparser import ( "bytes" "encoding/json" "strconv" "code.google.com/p/vitess/go/sqltypes" ) type BindLocation struct { Offset, Length int } type...
Go
//line sql.y:33 package sqlparser import __yyfmt__ "fmt" //line sql.y:33 func SetParseTree(yylex interface{}, root *Node) { tn := yylex.(*Tokenizer) tn.ParseTree = root } func SetAllowComments(yylex interface{}, allow bool) { tn := yylex.(*Tokenizer) tn.AllowComments = allow } func ForceEOF(yylex interface{}) {...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sqlparser import ( "bytes" "fmt" "io" "unicode" "code.google.com/p/vitess/go/sqltypes" ) const EOFCHAR = 0x100 type Tokenizer struct { InStream ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sqlparser import ( "strconv" "code.google.com/p/vitess/go/vt/key" ) const ( ROUTE_BY_CONDITION = iota ROUTE_BY_VALUE ) const ( EID_NODE = iota VA...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl type BlPosition struct { Position ReplicationCoordinates Timestamp int64 Xid uint64 GroupId uint64 } type BinlogResponse struct { ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "bufio" // "crypto/md5" "encoding/hex" "fmt" "hash" // "hash/crc64" "encoding/json" "io" "io/ioutil" "net/http" "os" "path" ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "fmt" "io" "os" "path" "code.google.com/p/vitess/go/relog" vtenv "code.google.com/p/vitess/go/vt/env" ) /* -d, --database=name ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl /* the binlogreader is intended to "tail -f" a binlog, but be smart enough to stop tailing it when mysql is done writing to that binlog. The sto...
Go
package mysqlctl import ( "code.google.com/p/vitess/go/relog" ) type MapFunc func(index int) error // ConcurrentMap applies fun in a concurrent manner on integers from 0 // to n-1 (they are assumed to be indexes of some slice containing // items to be processed). The first error returned by a fun // application wil...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "bufio" "bytes" "encoding/base64" "encoding/json" "fmt" "io" "os" "path" "strconv" "strings" "time" "code.google.com/p/vites...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "expvar" "fmt" "os" "path" "strconv" "sync" "time" "code.google.com/p/vitess/go/relog" "code.google.com/p/vitess/go/rpcwrap" e...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Handle creating replicas and setting up the replication streams. */ package mysqlctl import ( "bytes" "errors" "fmt" "net" "os" "path" "strconv" "stri...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "encoding/json" "errors" "fmt" "io/ioutil" "os" "path" "path/filepath" "strings" "code.google.com/p/vitess/go/ioutil2" "code....
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "bytes" "fmt" "io" "os" "path" "strconv" ) /* The code in this file helps to track the position metadata for binlogs. */ type Rep...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "fmt" "hash/crc64" "sort" "code.google.com/p/vitess/go/mysql/proto" "code.google.com/p/vitess/go/sqltypes" "code.google.com/p/vit...
Go
package csvsplitter import ( "bufio" "bytes" "io" "strconv" "code.google.com/p/vitess/go/vt/key" ) type KeyspaceCSVReader struct { reader *bufio.Reader delim byte buf *bytes.Buffer } func NewKeyspaceCSVReader(r io.Reader, delim byte) *KeyspaceCSVReader { return &KeyspaceCSVReader{reader: bufio.NewReade...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "fmt" "time" "code.google.com/p/vitess/go/relog" ) // if the master is still alive, then we need to demote it gracefully // make it...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl // FIXME(msolomon) this actions were copy/pasted from replication.go because // they were conceptually quite similar. They should be reconciled a...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Commands for controlling an external mysql process. Some commands are issued as exec'd tools, some are handled by connecting via the mysql protocol. */ packag...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Generate my.cnf files from templates. */ package mysqlctl import ( "bufio" "bytes" "fmt" "io" "os" "path/filepath" "strconv" ) type Mycnf struct { ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Generate my.cnf files from templates. package mysqlctl import ( "bytes" "fmt" "io/ioutil" "path" "text/template" "code.google.com/p/vitess/go/vt/env" ...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mysqlctl import ( "crypto/md5" "encoding/hex" "fmt" "regexp" "sort" "strings" "code.google.com/p/vitess/go/jscfg" "code.google.com/p/vitess/go/re...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tabletserver import ( "fmt" "net/url" "strings" "time" "code.google.com/p/vitess/go/pools" "code.google.com/p/vitess/go/relog" "code.google.com/p/...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tabletserver import ( "strings" "time" "code.google.com/p/vitess/go/mysql" "code.google.com/p/vitess/go/mysql/proto" "code.google.com/p/vitess/go/re...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tabletserver import ( "encoding/json" "fmt" "net/http" "strconv" "sync" "time" "code.google.com/p/vitess/go/cache" mproto "code.google.com/p/vite...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tabletserver import ( "sync" "time" "code.google.com/p/vitess/go/pools" ) // ConnectionPool re-exposes ResourcePool as a pool of DBConnection objects...
Go
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tabletserver import ( "code.google.com/p/vitess/go/vt/tabletserver/proto" ) const TRAILING_COMMENT = "_trailingComment" type nomatch struct{} type mat...
Go