Documentation
¶
Index ¶
- func NewServer(h Handler, opts ...Option) *server
- func RandBytes(n int) []byte
- type Command
- type DefaultHandler
- type Handler
- type Listener
- type Option
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultHandler ¶
type DefaultHandler struct{}
func NewDefaultHandler ¶
func NewDefaultHandler() *DefaultHandler
func (*DefaultHandler) OnClose ¶
func (h *DefaultHandler) OnClose(connId uint32)
func (*DefaultHandler) OnConnect ¶
func (h *DefaultHandler) OnConnect(connId uint32)
func (*DefaultHandler) Ping ¶
func (h *DefaultHandler) Ping() error
func (*DefaultHandler) Quit ¶
func (h *DefaultHandler) Quit()
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAuthPlugin ¶
func WithAuthPlugin(plugin core.AuthenticationPlugin) Option
func WithPassword ¶
func WithSSLCert ¶
func WithSSLKey ¶
func WithUseSSL ¶
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.