cherryCommand

package
v1.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 7 Imported by: 0

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) Do

func (h *Data) Do(session *cherrySession.Session, packet facade.IPacket)

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) Do

func (h *Handshake) Do(session *cherrySession.Session, _ facade.IPacket)

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) Do

func (h *Heartbeat) Do(session *cherrySession.Session, _ facade.IPacket)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL