Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(handler AuthHandler) *Auth
type AuthHandler ¶
type AuthPassword ¶
type AuthPassword struct {
// contains filtered or unexported fields
}
func NewAuthPassword ¶
func NewAuthPassword(auth PasswordAuth) *AuthPassword
func (*AuthPassword) Handle ¶
func (p *AuthPassword) Handle(client *client.Client, packet *packets.ControlPacket) error
type ConnectHandle ¶
type DisConnectHandle ¶
type DisConnectHandle = func(client *client.Client, disconnect *packets.Disconnect) error
type OnceConnect ¶
type OnceConnect struct { }
func (*OnceConnect) Handle ¶
func (o *OnceConnect) Handle(c *client.Client, packet *packets.ControlPacket) error
type PacketMiddleware ¶
type PacketMiddleware interface {
Handle(client *client.Client, packet *packets.ControlPacket) error
}
type PasswordAuth ¶
type ProtocolVersion ¶
type ProtocolVersion struct { }
func (*ProtocolVersion) Handle ¶
func (p *ProtocolVersion) Handle(client *client.Client, packet *packets.ControlPacket) error
Click to show internal directories.
Click to hide internal directories.