Documentation ¶
Index ¶
- type Handler
- func (h *Handler) ComInitDB(c *mysql.Conn, schemaName string) error
- func (h *Handler) ComPrepare(c *mysql.Conn, query string) ([]*query.Field, error)
- func (h *Handler) ComQuery(c *mysql.Conn, query string, callback func(*sqltypes.Result) error) (err error)
- func (h *Handler) ComResetConnection(c *mysql.Conn)
- func (h *Handler) ComStmtExecute(c *mysql.Conn, prepare *mysql.PrepareData, ...) error
- func (h *Handler) ConnectionClosed(c *mysql.Conn)
- func (h *Handler) NewConnection(c *mysql.Conn)
- func (h *Handler) WarningCount(c *mysql.Conn) uint16
- type Listener
- type Server
- type Session
- type SessionManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(readTimeout time.Duration, conf *config.Conf, logger *zap.SugaredLogger, sm *SessionManager) *Handler
func (*Handler) ComPrepare ¶
func (*Handler) ComResetConnection ¶
func (*Handler) ComStmtExecute ¶
func (*Handler) ConnectionClosed ¶
func (*Handler) NewConnection ¶
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func NewSessionManager ¶
func NewSessionManager() *SessionManager
func (*SessionManager) DeleteSession ¶
func (sm *SessionManager) DeleteSession(conn *mysql.Conn)
func (*SessionManager) GetSession ¶
func (sm *SessionManager) GetSession(conn *mysql.Conn) *Session
func (*SessionManager) NewSession ¶
func (sm *SessionManager) NewSession(conn *mysql.Conn)
Click to show internal directories.
Click to hide internal directories.