commands

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MulanPSL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentChlCtx service.IChannelContext
View Source
var UID int64

Functions

func Connect

func Connect(c *ishell.Context)

Connect connect命令

func Greet

func Greet(c *ishell.Context)

Greet greet命令

func Init

func Init()

func NewCallBack

func NewCallBack() inboundCommands.ICallBack

func Request

func Request(c *ishell.Context)

Request request命令

Types

type CallBack

type CallBack struct{}

func (*CallBack) ConnectFail added in v1.0.2

func (cb *CallBack) ConnectFail(err error, params map[string]interface{})

ConnectFail called on executor routine

func (*CallBack) ConnectInactive added in v1.0.2

func (cb *CallBack) ConnectInactive(uID int64, currentChlCtx service.IChannelContext)

ConnectInactive called on executor routine

func (*CallBack) ConnectSuccess

func (cb *CallBack) ConnectSuccess(uID int64, currentChlCtx service.IChannelContext)

ConnectSuccess called on executor routine

func (*CallBack) MessageReceived

func (cb *CallBack) MessageReceived(Ctx service.IChannelContext, Data protocol.IProtocol)

MessageReceived called on executor routine

Jump to

Keyboard shortcuts

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