Documentation
¶
Index ¶
- func ConnectAndLogin(connectTo string, account *api.Account) (c *proto.Conn, err error)
- func IgnoreConfig(c *proto.Conn) (err error)
- func Login(c *proto.Conn, account *api.Account) (err error)
- type ConfigIgnorer
- func (c *ConfigIgnorer) Default(event event.Anything) (err error)
- func (c *ConfigIgnorer) OnFinish(_ *v1_21_8.ConfigurationToClientPacketFinishConfiguration) (err error)
- func (c *ConfigIgnorer) OnKeepAlive(packet *v1_21_8.ConfigurationToClientPacketKeepAlive) (err error)
- func (c *ConfigIgnorer) OnKnownPacks(packet *v1_21_8.ConfigurationToClientPacketCommonSelectKnownPacks) (err error)
- func (c *ConfigIgnorer) OnPing(packet *v1_21_8.ConfigurationToClientPacketPing) (err error)
- type IntervalTask
- type KickedDuringLoginErr
- type LoginClient
- func (s *LoginClient) Default(event event.Unhandled) (err error)
- func (s *LoginClient) OnCompress(compress *v1_21_8.LoginToClientPacketCompress) (err error)
- func (s *LoginClient) OnCycle(_ event.Tick) (err error)
- func (s *LoginClient) OnDisconnect(packet *v1_21_8.LoginToClientPacketDisconnect) (err error)
- func (s *LoginClient) OnEncrypt(packet *v1_21_8.LoginToClientPacketEncryptionBegin) (err error)
- func (s *LoginClient) OnStart(_ event.OnStart) (err error)
- func (s *LoginClient) OnSuccess(success *v1_21_8.LoginToClientPacketSuccess) (err error)
- type OnceTask
- type StatusClient
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectAndLogin ¶
func IgnoreConfig ¶
Types ¶
type ConfigIgnorer ¶
func (*ConfigIgnorer) OnFinish ¶
func (c *ConfigIgnorer) OnFinish(_ *v1_21_8.ConfigurationToClientPacketFinishConfiguration) (err error)
func (*ConfigIgnorer) OnKeepAlive ¶
func (c *ConfigIgnorer) OnKeepAlive(packet *v1_21_8.ConfigurationToClientPacketKeepAlive) (err error)
func (*ConfigIgnorer) OnKnownPacks ¶
func (c *ConfigIgnorer) OnKnownPacks(packet *v1_21_8.ConfigurationToClientPacketCommonSelectKnownPacks) (err error)
func (*ConfigIgnorer) OnPing ¶
func (c *ConfigIgnorer) OnPing(packet *v1_21_8.ConfigurationToClientPacketPing) (err error)
type IntervalTask ¶
type KickedDuringLoginErr ¶
func (KickedDuringLoginErr) Error ¶
func (k KickedDuringLoginErr) Error() string
type LoginClient ¶
type LoginClient struct {
*proto.Conn
Account *api.Account
ServerHost string
ServerPort uint16
GivenAccount *v1_21_8.LoginToClientPacketSuccess
}
func (*LoginClient) OnCompress ¶
func (s *LoginClient) OnCompress(compress *v1_21_8.LoginToClientPacketCompress) (err error)
func (*LoginClient) OnDisconnect ¶
func (s *LoginClient) OnDisconnect(packet *v1_21_8.LoginToClientPacketDisconnect) (err error)
func (*LoginClient) OnEncrypt ¶
func (s *LoginClient) OnEncrypt(packet *v1_21_8.LoginToClientPacketEncryptionBegin) (err error)
func (*LoginClient) OnSuccess ¶
func (s *LoginClient) OnSuccess(success *v1_21_8.LoginToClientPacketSuccess) (err error)
type StatusClient ¶
func (*StatusClient) Default ¶
func (s *StatusClient) Default(event any) (err error)
func (*StatusClient) OnStatus ¶
func (s *StatusClient) OnStatus(p v1_21_8.StatusToClientPacketServerInfo) (err error)
type Timer ¶
type Timer struct {
Once []OnceTask
Interval []IntervalTask
Active bool
}
Click to show internal directories.
Click to hide internal directories.