Documentation
¶
Index ¶
- Constants
- Variables
- func GetRowCacheType(rowCacheType string) int
- type Conn
- type IServer
- type Schema
- type Server
- func (s *Server) AsynExec(task *execTask)
- func (s *Server) CfgGetPwd() string
- func (s *Server) Close()
- func (s *Server) DecCounter(key string)
- func (s *Server) GetRWlock() *sync.RWMutex
- func (s *Server) GetRowCacheSchema(db string) (*tabletserver.SchemaInfo, bool)
- func (s *Server) GetSchema(db string) *Schema
- func (s *Server) GetShard(shardId string) *Shard
- func (s *Server) GetShardIds() []string
- func (s *Server) GetToken() *tokenlimiter.Token
- func (s *Server) HandleReload(w http.ResponseWriter, req *http.Request)
- func (s *Server) IncCounter(key string)
- func (s *Server) MapToShards(db string, table string) []string
- func (s *Server) ReleaseToken(token *tokenlimiter.Token)
- func (s *Server) Run() error
- func (s *Server) SkipAuth() bool
- type Shard
- type Stmt
Constants ¶
View Source
const (
Master = "master"
)
Variables ¶
View Source
var DEFAULT_CAPABILITY uint32 = mysql.CLIENT_LONG_PASSWORD | mysql.CLIENT_LONG_FLAG | mysql.CLIENT_CONNECT_WITH_DB | mysql.CLIENT_PROTOCOL_41 | mysql.CLIENT_TRANSACTIONS | mysql.CLIENT_SECURE_CONNECTION
Functions ¶
func GetRowCacheType ¶
Types ¶
type IServer ¶
type IServer interface {
GetSchema(string) *Schema
GetRowCacheSchema(string) (*tabletserver.SchemaInfo, bool)
CfgGetPwd() string
SkipAuth() bool
GetToken() *tokenlimiter.Token
ReleaseToken(token *tokenlimiter.Token)
GetRWlock() *sync.RWMutex
GetShard(shardId string) *Shard
GetShardIds() []string
AsynExec(task *execTask)
IncCounter(key string)
DecCounter(key string)
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DecCounter ¶
func (*Server) GetRowCacheSchema ¶
func (s *Server) GetRowCacheSchema(db string) (*tabletserver.SchemaInfo, bool)
func (*Server) GetShardIds ¶
func (*Server) GetToken ¶
func (s *Server) GetToken() *tokenlimiter.Token
func (*Server) HandleReload ¶
func (s *Server) HandleReload(w http.ResponseWriter, req *http.Request)
func (*Server) IncCounter ¶
func (*Server) ReleaseToken ¶
func (s *Server) ReleaseToken(token *tokenlimiter.Token)
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func (*Stmt) ResetParams ¶
func (s *Stmt) ResetParams()
Click to show internal directories.
Click to hide internal directories.