Documentation ¶
Index ¶
- type BonusClient
- type MyTcpProcessor
- func (slf *MyTcpProcessor) CipherKeyNtf(session *network.Session, msg proto.Message)
- func (slf *MyTcpProcessor) EmitCheque(session *network.Session, msg proto.Message)
- func (slf *MyTcpProcessor) Heartbeat(session *network.Session)
- func (slf *MyTcpProcessor) HeartbeatRsp(session *network.Session, msg proto.Message)
- func (slf *MyTcpProcessor) OnConnectClose(session *network.Session)
- func (slf *MyTcpProcessor) OnConnectSucc(session *network.Session)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BonusClient ¶
type BonusClient struct {
// contains filtered or unexported fields
}
func InitBonus ¶
func InitBonus(logger logging.Logger) *BonusClient
func (*BonusClient) Close ¶
func (bc *BonusClient) Close() error
type MyTcpProcessor ¶
type MyTcpProcessor struct {
network.DefTcpProcessor
}
func (*MyTcpProcessor) CipherKeyNtf ¶
func (slf *MyTcpProcessor) CipherKeyNtf(session *network.Session, msg proto.Message)
func (*MyTcpProcessor) EmitCheque ¶
func (slf *MyTcpProcessor) EmitCheque(session *network.Session, msg proto.Message)
func (*MyTcpProcessor) Heartbeat ¶
func (slf *MyTcpProcessor) Heartbeat(session *network.Session)
func (*MyTcpProcessor) HeartbeatRsp ¶
func (slf *MyTcpProcessor) HeartbeatRsp(session *network.Session, msg proto.Message)
func (*MyTcpProcessor) OnConnectClose ¶
func (slf *MyTcpProcessor) OnConnectClose(session *network.Session)
func (*MyTcpProcessor) OnConnectSucc ¶
func (slf *MyTcpProcessor) OnConnectSucc(session *network.Session)
Click to show internal directories.
Click to hide internal directories.