code stringlengths 10 1.34M | language stringclasses 1
value |
|---|---|
// Copyright 2009 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 bufio implements buffered I/O. It wraps an io.Reader or io.Writer
// object, creating another object (Reader or AsyncWriter) that also implements
//... | 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 logfile
import (
"fmt"
"io"
"os"
"path"
"path/filepath"
"sync"
"time"
)
type Logfile struct {
mu sync.Mutex
handle *os.File
curName strin... | 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 memcache
import (
"bufio"
"fmt"
"io"
"net"
"strconv"
"strings"
)
type Connection struct {
conn net.Conn
buffered bufio.ReadWriter
}
type Res... | 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 sync2
import (
"sync"
)
// Cond is an alternate implementation of sync.Cond
type Cond struct {
L sync.Locker
sema chan struct{}
waiters Atom... | 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 sync2
import (
"sync/atomic"
"time"
)
type AtomicInt32 int32
func (i *AtomicInt32) Add(n int32) int32 {
return atomic.AddInt32((*int32)(i), n)
}
fun... | Go |
package sync2
// What's in a name? Channels have all you need to emulate a counting
// semaphore with a boatload of extra functionality. However, in some
// cases, you just want a familiar API.
//
// Additionally there is great debate on how to do this correctly:
//
// https://groups.google.com/forum/#!msg/golang-dev/... | Go |
package streamlog
import (
"expvar"
"io"
"net/http"
"net/url"
"sync"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/sync2"
)
var droppedMessages = expvar.NewMap("streamlog-dropped-messages")
// A StreamLogger makes messages sent to it available through HTTP.
type StreamLogger struct {
data... | Go |
// Copyright 2009 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 rpcplus
/*
Some HTML presented at http://machine:port/debug/rpc
Lists services, their methods, and some statistics, still rudimentary.
*/
import (
... | 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 jsonrpc
import (
"encoding/json"
"errors"
"io"
"sync"
rpc "code.google.com/p/vitess/go/rpcplus"
)
type serverCodec struct {
dec *json.Decoder ... | 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 jsonrpc implements a JSON-RPC ClientCodec and ServerCodec
// for the rpc package.
package jsonrpc
import (
"encoding/json"
"fmt"
"io"
"net"
"s... | Go |
// Copyright 2009 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 rpc provides access to the exported methods of an object across a
network or other I/O connection. A server registers an object, making it visible... | Go |
// Copyright 2009 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 rpcplus
import (
"bufio"
"encoding/gob"
"errors"
"io"
"log"
"net"
"net/http"
"reflect"
"sync"
)
// ServerError represents an error that has b... | 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 tb
import (
"bytes"
"fmt"
"io/ioutil"
"runtime"
)
var (
dunno = []byte("???")
centerDot = []byte("·")
dot = []byte(".")
)
// This packa... | 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 hack gives you some efficient functionality at the cost
// breaking some go rules
package hack
import (
"reflect"
"unsafe"
)
// StringArena lets yo... | 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 umgmt
import (
"fmt"
"net"
"os"
"syscall"
)
func SendFd(conn *net.UnixConn, file *os.File) error {
rights := syscall.UnixRights(int(file.Fd()))
dum... | 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 umgmt
import (
"crypto/tls"
"crypto/x509"
"expvar"
"net"
"net/http"
"os"
"strings"
"sync"
"code.google.com/p/vitess/go/relog"
)
var connectionC... | 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.
// The micromanagment module provides a tiny server running on a unix
// domain socket.
//
// It is meant as an alternative to signals for handling graceful
// ser... | Go |
package main
import (
"code.google.com/p/vitess/go/umgmt"
"flag"
)
var sockPath = flag.String("sock-path", "", "")
func main() {
flag.Parse()
println("sock path: ", *sockPath)
uc, err := umgmt.Dial(*sockPath)
if err != nil {
panic(err)
}
msg, err := uc.Ping()
if err != nil {
panic(err)
}
println("msg:... | 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 umgmt
import (
"io"
"net"
"net/rpc"
"code.google.com/p/vitess/go/relog"
)
type Client struct {
*rpc.Client
conn io.ReadWriteCloser
}
func Dial(ad... | 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 pools
import (
"fmt"
"sync"
"time"
)
// RoundRobin is deprecated. Use ResourcePool instead.
// RoundRobin allows you to use a pool of resources in a r... | 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 pools
import (
"errors"
"fmt"
"sync"
"time"
)
// Numbered allows you to manage resources by tracking them with numbers.
// There are no interface res... | 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 pools provides functionality to manage and reuse resources
// like connections.
package pools
import (
"fmt"
"time"
"code.google.com/p/vitess/go/sy... | 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.
/*
The vt_binlog_player reads data from the a remote host via vt_binlog_server.
This is mostly intended for online data migrations.
*/
package main
import (
"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 main
import (
"flag"
"fmt"
_ "net/http/pprof"
"os"
"code.google.com/p/vitess/go/relog"
rpc "code.google.com/p/vitess/go/rpcplus"
"code.google.com/... | 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.
// vt binlog server: Serves binlog for out of band replication.
package main
import (
"bufio"
"bytes"
"flag"
"fmt"
"io"
_ "net/http/pprof"
"os"
"os/signal... | 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 main
import (
"flag"
"fmt"
"net/url"
"os"
"strings"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/dbconfigs"
"code.google.c... | Go |
package main
// To be used with PowerDNS (pdns) as a "pipe backend" CoProcess.
//
// Protocol description:
// http://downloads.powerdns.com/documentation/html/backends-detail.html#PIPEBACKEND.
//
// Mainly the resolver has to interpret zkns addresses in a way that
// is helpful for DNS. This involves approximating CN... | 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 main
import (
"bufio"
"flag"
"fmt"
"log"
"os"
"strings"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/zk/zkctl"
)
var usage =... | 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.
// vt tablet server: Serves queries and performs housekeeping jobs.
package main
import (
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"net/http"
_ "net/h... | 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 main
// Imports and register the Zookeeper TopologyServer
import (
_ "code.google.com/p/vitess/go/vt/zktopo"
)
| 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 main
// Imports and register the Zookeeper topo.Server
// Adds the Zookeeper specific commands
import (
"flag"
"fmt"
"path"
"sort"
"sync"
"time"
... | 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 main
import (
"bufio"
"flag"
"fmt"
"io"
"io/ioutil"
"log/syslog"
"os"
"os/signal"
"sort"
"strings"
"syscall"
"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 main
import (
"expvar"
"flag"
"fmt"
"net/http"
_ "net/http/pprof"
"os"
"code.google.com/p/vitess/go/jscfg"
"code.google.com/p/vitess/go/relog"
r... | 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 main
// Imports and register the Zookeeper TopologyServer
import (
_ "code.google.com/p/vitess/go/vt/zktopo"
)
| 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 main
import (
"flag"
"fmt"
"log"
"os"
"time"
"code.google.com/p/vitess/go/rpcplus"
"code.google.com/p/vitess/go/rpcwrap/bsonrpc"
"code.google.com... | 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 main
// Imports and register the Zookeeper TopologyServer
import (
_ "code.google.com/p/vitess/go/vt/zktopo"
)
| 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 main
import (
"flag"
"os"
"sync"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/tb"
"code.google.com/p/vitess/go/vt/concurrency"
... | Go |
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"html/template"
"io"
"net/http"
"net/url"
"path"
"reflect"
"strings"
"time"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/topo"
"code.google.com/p/vitess/go/vt/wrangler"
"code.google.com/p/vitess/go/vt/zktopo" // FIXME(al... | 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 main
// Imports and register the Zookeeper TopologyServer
import (
_ "code.google.com/p/vitess/go/vt/zktopo"
)
| 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 main
import (
"encoding/json"
"flag"
"fmt"
"log"
"os"
"strings"
"time"
"code.google.com/p/vitess/go/db"
_ "code.google.com/p/vitess/go/vt/client... | 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.
// normalizer takes a file of sql statements as input and converts the
// statements into normalized sql statements with bind variables.
package main
import (
"b... | Go |
package main
import (
"archive/zip"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"os/signal"
"path"
"sort"
"strings"
"sync"
"syscall"
"time"
opts "code.google.com/p/opts-go"
"code.google.com/p/vitess/go/terminal"
"code.google.com/p/vitess/go/zk"
"launchpad.net/gozk/zookeeper"
)
var zkAddrs = opts.LongSin... | 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 main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
_ "net/http/pprof"
"os"
"os/signal"
"syscall"
"code.google.com/p/vitess/go/relog"
rpc "c... | 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 sqltypes implements interfaces and types that represent SQL values.
package sqltypes
import (
"encoding/base64"
"encoding/gob"
"encoding/json"
"fmt... | 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 bsonrpc
import (
"bytes"
"code.google.com/p/vitess/go/bson"
"code.google.com/p/vitess/go/bytes2"
rpc "code.google.com/p/vitess/go/rpcplus"
)
type Req... | 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 bsonrpc
import (
"io"
"time"
"code.google.com/p/vitess/go/bson"
"code.google.com/p/vitess/go/bytes2"
rpc "code.google.com/p/vitess/go/rpcplus"
"cod... | 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 rpcwrap
import (
"bufio"
"errors"
"io"
"net"
"net/http"
"time"
"code.google.com/p/vitess/go/relog"
rpc "code.google.com/p/vitess/go/rpcplus"
"co... | Go |
package proto
type Context struct {
RemoteAddr string
Username string
}
| Go |
package auth
import (
"crypto/hmac"
"crypto/md5"
"crypto/rand"
"encoding/binary"
"encoding/hex"
"fmt"
"os"
"time"
)
func CRAMMD5GetChallenge() (string, error) {
var randDigits uint32
err := binary.Read(rand.Reader, binary.LittleEndian, &randDigits)
if err != nil {
return "", err
}
timestamp := time.No... | Go |
package auth
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"strings"
"code.google.com/p/vitess/go/relog"
rpc "code.google.com/p/vitess/go/rpcplus"
"code.google.com/p/vitess/go/rpcwrap/proto"
)
// UnusedArgument is a type used to indicate an argument that is
// necessary because of net/rpc requirements.... | 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 jsonrpc
import (
"time"
rpc "code.google.com/p/vitess/go/rpcplus"
oldjson "code.google.com/p/vitess/go/rpcplus/jsonrpc"
"code.google.com/p/vitess/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 schema
// Yes, this sucks. It's a tiny tiny package that needs to be on its own
// It contains a data structure that's shared between sqlparser & tabletse... | 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 hook
import (
"bytes"
"fmt"
"os"
"os/exec"
"path"
"strings"
"syscall"
"code.google.com/p/vitess/go/jscfg"
"code.google.com/p/vitess/go/relog"
v... | 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 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 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.
/*
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.
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.
/*
Handle creating replicas and setting up the replication streams.
*/
package mysqlctl
import (
"bytes"
"errors"
"fmt"
"net"
"os"
"path"
"strconv"
"stri... | 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
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 (
"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 |
// 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
/*
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 |
// 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 (
"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.
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.
/*
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 |
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 (
"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.
// 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 (
"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 proto
import (
mproto "code.google.com/p/vitess/go/mysql/proto"
"code.google.com/p/vitess/go/rpcwrap"
rpcproto "code.google.com/p/vitess/go/rpcwrap/pro... | 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"
"fmt"
"math"
"time"
"code.google.com/p/vitess/go/bson"
"code.google.com/p/vitess/go/bytes2"
)
func (query *Query) MarshalBs... | 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 (
mproto "code.google.com/p/vitess/go/mysql/proto"
"code.google.com/p/vitess/go/vt/key"
)
type SessionParams struct {
DbName string
Ke... | 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/gob"
"expvar"
"fmt"
"strings"
"sync"
"time"
"code.google.com/p/vitess/go/bson"
"code.google.com/p/vitess/go/relog... | 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"
"regexp"
"strconv"
"code.google.com/p/vitess/go/vt/key"
"code.google.com/p/vitess/go/vt/sqlparser"
)
/... | 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 (
"bytes"
"expvar"
"fmt"
"math/rand"
"strings"
"sync"
"time"
"code.google.com/p/vitess/go/mysql"
mproto "code.google.com/p/v... | 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"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/tb"
)
const (
FAIL = iota
RETRY
FATAL
TX_POOL_FULL
)... | 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/binary"
"time"
"code.google.com/p/vitess/go/sqltypes"
"code.google.com/p/vitess/go/stats"
"code.google.com/p/vitess/... | 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/url"
"strings"
"time"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/rpcwrap/pr... | 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/hack"
mproto "code.google.com/p/vitess/go/mysql/proto"
"code.google.com/p/vitess/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 tabletserver
import (
"encoding/base64"
"encoding/binary"
"fmt"
"hash/fnv"
"regexp"
"strconv"
"strings"
"code.google.com/p/vitess/go/relog"
"cod... | 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 (
"net/http"
"sync"
"time"
"code.google.com/p/vitess/go/memcache"
"code.google.com/p/vitess/go/pools"
"code.google.com/p/vitess... | 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"
"time"
"code.google.com/p/vitess/go/pools"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/sync2"
"cod... | 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 (
"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 (
"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 (
"net/http"
mproto "code.google.com/p/vitess/go/mysql/proto"
"code.google.com/p/vitess/go/relog"
rpcproto "code.google.com/p/vit... | 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 (
"time"
"code.google.com/p/vitess/go/pools"
"code.google.com/p/vitess/go/sync2"
)
type ReservedPool struct {
pool *pools... | 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/http"
"sync"
"sync/atomic"
"time"
"code.google.com/p/vitess/go/cache"
"code.google.com/p/vitess/go/mysql/proto"
)... | 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 (
"bytes"
"encoding/base64"
"fmt"
"strings"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/sqltypes"
"code.g... | 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 |
// 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 key
import (
"fmt"
)
type KeyError string
func NewKeyError(format string, args ...interface{}) KeyError {
return KeyError(fmt.Sprintf(format, args...)... | 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 key
import (
"bytes"
"encoding/binary"
"encoding/hex"
"fmt"
"sort"
"strings"
)
var MinKey = KeyspaceId("")
var MaxKey = KeyspaceId("")
// NOTE(mso... | 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 concurrency
import (
"fmt"
"strings"
"sync"
"code.google.com/p/vitess/go/relog"
)
// ErrorRecorder offers a way to record errors during complex
// a... | 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 concurrency
import (
"fmt"
"sync"
"code.google.com/p/vitess/go/sync2"
)
// ResourceConstraint combines 3 different features:
// - a WaitGroup to wait... | 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 client2
import (
"fmt"
"net/url"
"path"
"strings"
"sync"
"time"
"code.google.com/p/vitess/go/db"
// FIXME(msolomon) needed for the field mapping. ... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.