cherryCommand

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 8 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 {
	cfacade.IApplication
	// contains filtered or unexported fields
}

func NewData

func NewData(app cfacade.IApplication, localMessage ProcessMessage, forwardMessage ProcessMessage) *Data

func (*Data) Do

func (h *Data) Do(session *csession.Session, packet cfacade.IPacket)

func (*Data) PacketType

func (h *Data) PacketType() cpacket.Type

type Handshake

type Handshake struct {
	cfacade.IApplication
	// contains filtered or unexported fields
}

func NewHandshake

func NewHandshake(app cfacade.IApplication, sysData map[string]interface{}) *Handshake

func (*Handshake) Do

func (h *Handshake) Do(session *csession.Session, _ cfacade.IPacket)

func (*Handshake) PacketType

func (h *Handshake) PacketType() cpacket.Type

type HandshakeACK

type HandshakeACK struct {
}

func NewHandshakeACK

func NewHandshakeACK() *HandshakeACK

func (*HandshakeACK) Do

func (h *HandshakeACK) Do(session *csession.Session, _ cfacade.IPacket)

func (*HandshakeACK) PacketType

func (h *HandshakeACK) PacketType() cpacket.Type

type Heartbeat

type Heartbeat struct {
	cfacade.IApplication
}

func NewHeartbeat

func NewHeartbeat(app cfacade.IApplication) *Heartbeat

func (*Heartbeat) Do

func (h *Heartbeat) Do(session *csession.Session, _ cfacade.IPacket)

func (*Heartbeat) PacketType

func (h *Heartbeat) PacketType() cpacket.Type

type ICommand

type ICommand interface {
	PacketType() cpacket.Type
	Do(session *csession.Session, packet cfacade.IPacket)
}

ICommand request data command for client

type ProcessMessage

type ProcessMessage func(session *csession.Session, msg *cmsg.Message)

Jump to

Keyboard shortcuts

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