Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func NewData ¶
func NewData(postHandler PostHandler) *Data
func (*Data) GetType ¶
func (h *Data) GetType() cherryPacket.Type
type Handshake ¶
type Handshake struct { facade.IApplication // contains filtered or unexported fields }
func NewHandshake ¶
func NewHandshake(app facade.IApplication, sysData map[string]interface{}) *Handshake
func (*Handshake) GetType ¶
func (h *Handshake) GetType() cherryPacket.Type
type HandshakeACK ¶
type HandshakeACK struct { }
func NewHandshakeACK ¶
func NewHandshakeACK() *HandshakeACK
func (*HandshakeACK) Do ¶
func (h *HandshakeACK) Do(session *cherrySession.Session, _ facade.IPacket)
func (*HandshakeACK) GetType ¶
func (h *HandshakeACK) GetType() cherryPacket.Type
type Heartbeat ¶
type Heartbeat struct {
facade.IApplication
}
func NewHeartbeat ¶
func NewHeartbeat(app facade.IApplication) *Heartbeat
func (*Heartbeat) GetType ¶
func (h *Heartbeat) GetType() cherryPacket.Type
type ICommand ¶
type ICommand interface { GetType() cherryPacket.Type Do(session *cherrySession.Session, packet facade.IPacket) }
ICommand request data command for client
type PostHandler ¶ added in v1.1.6
type PostHandler func(session *cherrySession.Session, msg *cherryMessage.Message)
Click to show internal directories.
Click to hide internal directories.