code stringlengths 10 1.34M | language stringclasses 1
value |
|---|---|
// 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"
"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 (
"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 (
"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 (
"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"
"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 (
"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 (
"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 (
"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 (
"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 (
"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 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 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 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 (
"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 (
"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 tabletmanager
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"os/signal"
"path"
"strings"
"syscall"
"time"
"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.
/*
The agent listens on an action node for new actions to perform.
It passes them off to a separate action process. Even though some
actions could be completed in... | 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 tabletmanager
import (
"fmt"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/rpcwrap"
rpcproto "code.google.com/p/vitess/go/rpcwrap/... | 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.
// Actions modify the state of a tablet, shard or keyspace.
//
// They are stored in topology server and form a queue. Only the
// lowest action id should be execu... | 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.
// Actions modify the state of a tablet, shard or keyspace.
//
// They are currenty managed through a series of queues stored in topology server.
package tabletma... | 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 topo
import (
"encoding/json"
"fmt"
"path"
"sort"
"strconv"
"strings"
"code.google.com/p/vitess/go/jscfg"
"code.google.com/p/vitess/go/netutil"
... | 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 topo
import (
"encoding/json"
"fmt"
"path"
"sync"
"code.google.com/p/vitess/go/jscfg"
"code.google.com/p/vitess/go/vt/key"
)
// Functions for deal... | 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 topo
import (
"errors"
"fmt"
"os"
"time"
"code.google.com/p/vitess/go/relog"
)
var (
// ErrNodeExists is returned by functions to specify the
// ... | 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 topo
import (
"encoding/json"
"fmt"
"sort"
"code.google.com/p/vitess/go/vt/key"
)
// SrvShard contains a roll-up of the shard in the local namespace... | 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 topo
/*
Handle logical name resolution - sort of like DNS but tailored to
vt and using the topology server.
Naming is disconnected from the backend disco... | 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.
// This implements some additional error handling logic to make the client
// more robust in the face of transient problems with easy solutions.
package tablet
im... | 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 tablet
import (
"strconv"
)
// These numbers should exactly match values defined in dist/mysql-5.1.52/include/mysql/mysql_com.h
const (
VT_DECIMAL ... | 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.
// API compliant to the requirements of database/sql
// Open expects name to be "hostname:port/keyspace/shard"
// For query arguments, we assume place-holders in t... | 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 |
// 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 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 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 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 rpc
// RPC structs shared between many components
type UnusedRequest string
var NilRequest = new(UnusedRequest)
type UnusedResponse string
var NilResp... | 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 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 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 env defines and initializes command line flags that control
// the runtime environment.
//
// After the main program has called flag.Parse, it needs to ... | 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 zktopo
import (
"fmt"
"math/rand"
"path"
"sort"
"strconv"
"strings"
"time"
"code.google.com/p/vitess/go/jscfg"
"code.google.com/p/vitess/go/relo... | 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 zktopo
import (
"fmt"
"path"
"sort"
"strings"
"time"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/topo"
"code.google.com/p... | 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 zktopo
import (
"expvar"
"fmt"
"path"
"sort"
"time"
"code.google.com/p/vitess/go/vt/topo"
"code.google.com/p/vitess/go/zk"
"launchpad.net/gozk/zo... | Go |
package wrangler
import (
"fmt"
"code.google.com/p/vitess/go/relog"
tm "code.google.com/p/vitess/go/vt/tabletmanager"
"code.google.com/p/vitess/go/vt/topo"
)
// Assume the master is dead and not coming back. Just push your way
// forward. Force means we are reparenting to the same master
// (assuming the data 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 wrangler
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"sort"
"strings"
"sync"
"code.google.com/p/vitess/go/relog"
"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 wrangler
import (
"reflect"
"sort"
"sync"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/topo"
)
// If error is not nil, the 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 wrangler
import (
"fmt"
"sync"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/concurrency"
"code.google.com/p/vitess/go/vt/key"... | Go |
package wrangler
import (
"fmt"
"path"
"sort"
"strings"
"code.google.com/p/vitess/go/jscfg"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/topo"
"code.google.com/p/vitess/go/vt/zktopo"
"code.google.com/p/vitess/go/zk"
"code.google.com/p/vitess/go/zk/zkns"
"launchpad.net/gozk/zookeeper"... | 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 wrangler
import (
"fmt"
"strings"
"time"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/key"
tm "code.google.com/p/vitess/go/v... | 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 wrangler
import (
"fmt"
"sync"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/concurrency"
tm "code.google.com/p/vitess/go/vt/t... | Go |
package wrangler
import (
"fmt"
"sort"
"strings"
"sync"
"time"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/hook"
"code.google.com/p/vitess/go/vt/mysqlctl"
tm "code.google.com/p/vitess/go/vt/tabletmanager"
"code.google.com/p/vitess/go/vt/topo"
)
// helper struct to queue up results
t... | 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 wrangler
import (
"fmt"
"net"
"sync"
"time"
"code.google.com/p/vitess/go/relog"
tm "code.google.com/p/vitess/go/vt/tabletmanager"
"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.
package wrangler
import (
"fmt"
"sync"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/concurrency"
tm "code.google.com/p/vitess/go/vt/t... | 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 wrangler
import (
"fmt"
"strings"
"time"
"code.google.com/p/vitess/go/relog"
hk "code.google.com/p/vitess/go/vt/hook"
"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 wrangler
import (
"fmt"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/topo"
)
func (wr *Wrangler) reparentShardGraceful(slaveTa... | 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 wrangler
import (
"fmt"
"sort"
"sync"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/concurrency"
"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 wrangler
/*
Assume a graph of mysql nodes.
Replace node N with X.
Connect to N and record file/position from "show master status"
On N: (Demote Master)... | 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 wrangler
import (
"fmt"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/key"
tm "code.google.com/p/vitess/go/vt/tabletmanager"
"... | Go |
package wrangler
import (
"sort"
"strconv"
"strings"
"code.google.com/p/vitess/go/vt/topo"
)
// TabletNodesByType maps tablet types to slices of tablet nodes.
type TabletNodesByType map[string][]*TabletNode
// ShardNodes represents all tablet nodes for a shard. The keys are
// string representations of tablet t... | 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 wrangler
import (
"fmt"
"sort"
"strings"
"sync"
"code.google.com/p/vitess/go/relog"
"code.google.com/p/vitess/go/vt/concurrency"
"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.
package stats
import (
"bytes"
"expvar"
"fmt"
"sync"
)
type Counters struct {
mu sync.Mutex
counts map[string]int64
}
func NewCounters(name string) *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 stats
// StrFunc converts any function that returns a JSON string into
// an expvar.Var compatible object.
type StrFunc func() string
func (f StrFunc) St... | 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 stats
import (
"bytes"
"expvar"
"fmt"
"sync"
)
type Histogram struct {
cutoffs []int64
labels []string
countLabel string
totalLabel string... | 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 stats
// Ring of int64 values
// Not thread safe
type RingInt64 struct {
position int
values []int64
}
func NewRingInt64(capacity int) *RingInt64 {
... | 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 stats
import (
"encoding/json"
"expvar"
"sync"
"time"
)
type CountTracker interface {
Counts() map[string]int64
}
type Rates struct {
mu ... | 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 stats
import (
"bytes"
"expvar"
"fmt"
"sync"
"time"
)
// The States structure keeps historical data about a state machine
// state, and exports them... | 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 stats
import (
"encoding/json"
"expvar"
"fmt"
"sync"
"time"
)
type Timings struct {
mu sync.Mutex
TotalCount int64
TotalTime int64
Hist... | 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 |
// 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 |
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 |
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 |
// 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 |
package proto
type Context struct {
RemoteAddr string
Username string
}
| 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 terminal
import (
"syscall"
"unsafe"
)
// IsTerminal returns true if the given file descriptor is a terminal.
func IsTerminal(fd uintptr) bool {
var t... | 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 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 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 snitch
import (
"code.google.com/p/vitess/go/relog"
"fmt"
"net/http"
"runtime"
)
const (
BaseUrl = "/debug/snitch"
)
type SnitchCmd struct {
url ... | 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 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 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 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 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 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 |
// 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 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 |
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 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 |
// 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 (
"bufio"
"flag"
"fmt"
"io"
"io/ioutil"
"log/syslog"
"os"
"os/signal"
"sort"
"strings"
"syscall"
"time"
"code.google.com/p/vites... | 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.
// 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.
/*
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 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.
// 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 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.
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 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.