go/

directory
v2.1.0-rc.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2017 License: BSD-3-Clause

README

This directory contains all the Go code for Vitess.

Most of the packages at the top level are general-purpose and are suitable for use outside Vitess. Packages that are specific to Vitess are in the vt subdirectory. Binaries are in the cmd subdirectory.

Please see GoDoc for a listing of the packages and their purposes.

vt/proto contains the compiled protos for go, one per each directory. When importing these protos (for instance XXX.proto), we rename them on import to XXXpb. For instance:

import (
    topodatapb "github.com/youtube/vitess/go/vt/proto/topodata"
)

Directories

Path Synopsis
Package acl contains functions to enforce access control lists.
Package acl contains functions to enforce access control lists.
Package cache implements a LRU cache.
Package cache implements a LRU cache.
Package cgzip wraps the C library for gzip.
Package cgzip wraps the C library for gzip.
cmd
Package event provides a reflect-based framework for low-frequency global dispatching of events, which are values of any arbitrary type, to a set of listener functions, which are usually registered by plugin packages during init().
Package event provides a reflect-based framework for low-frequency global dispatching of events, which are values of any arbitrary type, to a set of listener functions, which are usually registered by plugin packages during init().
Package ewma implements exponentially weighted moving averages(EWMA).
Package ewma implements exponentially weighted moving averages(EWMA).
Package exit provides an alternative to os.Exit(int).
Package exit provides an alternative to os.Exit(int).
Package fileutil contains utility functions related to files and paths.
Package fileutil contains utility functions related to files and paths.
Package flagutil contains flags that parse string lists and string maps.
Package flagutil contains flags that parse string lists and string maps.
Package hack gives you some efficient functionality at the cost of breaking some Go rules.
Package hack gives you some efficient functionality at the cost of breaking some Go rules.
Package history implements a circular buffer with adjacent-item deduplication.
Package history implements a circular buffer with adjacent-item deduplication.
Package ioutil2 provides extra functionality along similar lines to io/ioutil.
Package ioutil2 provides extra functionality along similar lines to io/ioutil.
Package memcache is a client for memcached.
Package memcache is a client for memcached.
Package mysql wraps the C client library for MySQL.
Package mysql wraps the C client library for MySQL.
Package mysqlconn is a library to support MySQL binary protocol, both client and server sides.
Package mysqlconn is a library to support MySQL binary protocol, both client and server sides.
Package netutil contains network-related utility functions.
Package netutil contains network-related utility functions.
Package pools provides functionality to manage and reuse resources like connections.
Package pools provides functionality to manage and reuse resources like connections.
Package proc allows you to configure servers to be restarted with negligible downtime.
Package proc allows you to configure servers to be restarted with negligible downtime.
Package ratelimiter implements rate limiting functionality.
Package ratelimiter implements rate limiting functionality.
Package sqldb defines an interface for low level db connection.
Package sqldb defines an interface for low level db connection.
Package sqltypes implements interfaces and types that represent SQL values.
Package sqltypes implements interfaces and types that represent SQL values.
Package stats is a wrapper for expvar.
Package stats is a wrapper for expvar.
Package streamlog provides a non-blocking message broadcaster.
Package streamlog provides a non-blocking message broadcaster.
Package sync2 provides extra functionality along the same lines as sync.
Package sync2 provides extra functionality along the same lines as sync.
Package tb exposes some handy traceback functionality buried in the runtime.
Package tb exposes some handy traceback functionality buried in the runtime.
Package testfiles locates test files within the Vitess directory tree.
Package testfiles locates test files within the Vitess directory tree.
Package timer provides various enhanced timer functions.
Package timer provides various enhanced timer functions.
Package trace contains a helper interface that allows various tracing tools to be plugged in to components using this interface.
Package trace contains a helper interface that allows various tracing tools to be plugged in to components using this interface.
vt
zk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL