Versions in this module Expand all Collapse all v1 v1.0.5 Feb 18, 2022 Changes in this version + func NewServer(h Handler, opts ...Option) *server + func RandBytes(n int) []byte + type Command interface + Other func(data []byte, conn mysql.Conn) + Ping func() error + Query func(query string) (ResultSet, error) + Quit func() + type DefaultHandler struct + func NewDefaultHandler() *DefaultHandler + func (h *DefaultHandler) OnClose(connId uint32) + func (h *DefaultHandler) OnConnect(connId uint32) + func (h *DefaultHandler) Other(data []byte, conn mysql.Conn) + func (h *DefaultHandler) Ping() error + func (h *DefaultHandler) Query(query string) (ResultSet, error) + func (h *DefaultHandler) Quit() + type Handler interface + type Listener interface + OnClose func(connId uint32) + OnConnect func(connId uint32) + type Option interface + func WithAuthPlugin(plugin core.AuthenticationPlugin) Option + func WithHost(host string) Option + func WithPassword(password string) Option + func WithPort(port int) Option + func WithSSLCA(sslCA string) Option + func WithSSLCert(sslCert string) Option + func WithSSLKey(sslKey string) Option + func WithUseSSL(useSSL bool) Option + func WithUser(user string) Option + func WithVersion(version string) Option + type ResultSet interface + Columns func() []packet.Column + Rows func() []packet.Row + WriteText func(mysql.Conn) error + func NewSimpleResultSet(columnNames []string, rowValues [][]interface{}) (ResultSet, error)