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"`
}
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.