Documentation ¶
Index ¶
- Constants
- Variables
- type Conn
- type MysqlConfig
- type Node
- type Schema
- type Server
- func (s *Server) Close()
- func (s *Server) DownMaster(node string) error
- func (s *Server) DownSlave(node string) error
- func (s *Server) GetMySqlVariable(name string) (v string, ok bool)
- func (s *Server) GetRule(table string) *router.Rule
- func (s *Server) Run() error
- func (s *Server) SetMysqlConfig(mysql_config MysqlConfig)
- func (s *Server) UpMaster(node string, addr string) error
- func (s *Server) UpSlave(node string, addr string) error
- type Stmt
Constants ¶
View Source
const ( Master = "master" Slave = "slave" )
Variables ¶
View Source
var DEFAULT_CAPABILITY uint32 = CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG |
CLIENT_CONNECT_WITH_DB | CLIENT_PROTOCOL_41 |
CLIENT_TRANSACTIONS | CLIENT_SECURE_CONNECTION
Functions ¶
This section is empty.
Types ¶
type MysqlConfig ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DownMaster ¶
func (*Server) GetMySqlVariable ¶
func (*Server) SetMysqlConfig ¶
func (s *Server) SetMysqlConfig(mysql_config MysqlConfig)
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.