server

package
v0.0.0-...-b26f8fd Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func FindForKey

func FindForKey(key string, shardNum int) int

Types

type AutoKey

type AutoKey struct {
	// contains filtered or unexported fields
}

func (*AutoKey) Get

func (a *AutoKey) Get() uint64

func (*AutoKey) OK

func (a *AutoKey) OK() bool

func (*AutoKey) Set

func (a *AutoKey) Set(id, interval uint64)

type Bpool

type Bpool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewBpool

func NewBpool() *Bpool

func (*Bpool) CloseDB

func (p *Bpool) CloseDB(backend *meta.Backend) error

func (*Bpool) GetConn

func (p *Bpool) GetConn(backend *meta.Backend) (*client.Conn, error)

func (*Bpool) PushConn

func (p *Bpool) PushConn(backend *meta.Backend, conn *client.Conn, err error)

type MetaCache

type MetaCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewMetaCache

func NewMetaCache(info *meta.Info) *MetaCache

func (*MetaCache) Del

func (m *MetaCache) Del(name string, args ...string)

func (*MetaCache) GetTable

func (m *MetaCache) GetTable(name, db, table string) (*Table, error)

type Plan

type Plan struct {
	SQLs  []*SQL
	Table *Table
	// contains filtered or unexported fields
}

type SQL

type SQL struct {
	Backend *meta.Backend
	SQL     []string
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewSever

func NewSever() *Server

func (*Server) GetInfo

func (s *Server) GetInfo() *meta.Info

func (*Server) Run

func (s *Server) Run()

func (*Server) StartDDLMange

func (s *Server) StartDDLMange()

type Table

type Table struct {
	Backends []*meta.Backend
	Table    *meta.Table
	// contains filtered or unexported fields
}

func (*Table) GetKey

func (t *Table) GetKey(field string, interval uint64, info *meta.Info) (string, error)

Jump to

Keyboard shortcuts

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