Documentation ¶
Index ¶
- func NewHttpListener(conf *config.Listener) (proto.Listener, error)
- func NewMysqlListener(conf *config.Listener) (proto.Listener, error)
- type HttpConfig
- type HttpListener
- type MysqlConfig
- type MysqlListener
- func (l *MysqlListener) Close()
- func (l *MysqlListener) ExecuteCommand(ctx context.Context, c *mysql.Conn, data []byte) error
- func (l *MysqlListener) Listen()
- func (l *MysqlListener) SetExecutor(executor proto.Executor)
- func (l *MysqlListener) ValidateHash(user string, salt []byte, authResponse []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpConfig ¶
type HttpConfig struct { BackendHost string `yaml:"backend_host" json:"backend_host"` // ReadBufferSize default 4096 byte ReadBufferSize int `yaml:"read_buffer_size" json:"read_buffer_size"` // WriteBufferSize default 4096 byte WriteBufferSize int `yaml:"write_buffer_size" json:"write_buffer_size"` // MaxRequestBodySize default 4 * 1024 * 1024 byte MaxRequestBodySize int `yaml:"max_request_body_size" json:"max_request_body_size"` }
type HttpListener ¶
type HttpListener struct {
// contains filtered or unexported fields
}
func (*HttpListener) Close ¶
func (l *HttpListener) Close()
func (*HttpListener) Listen ¶
func (l *HttpListener) Listen()
type MysqlConfig ¶
type MysqlListener ¶
type MysqlListener struct {
// contains filtered or unexported fields
}
func (*MysqlListener) Close ¶
func (l *MysqlListener) Close()
func (*MysqlListener) ExecuteCommand ¶
func (*MysqlListener) Listen ¶
func (l *MysqlListener) Listen()
func (*MysqlListener) SetExecutor ¶
func (l *MysqlListener) SetExecutor(executor proto.Executor)
func (*MysqlListener) ValidateHash ¶
func (l *MysqlListener) ValidateHash(user string, salt []byte, authResponse []byte) error
Click to show internal directories.
Click to hide internal directories.