channelCmdMakerImpl

package
v1.0.7 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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInboundCommandMaker

type ClientInboundCommandMaker struct {
	// contains filtered or unexported fields
}

func NewClientInboundCommandMaker

func NewClientInboundCommandMaker(mEventMaker schedule.IRoutineInboundEventMaker) (impl *ClientInboundCommandMaker)

func (*ClientInboundCommandMaker) MakeActiveCommand

func (impl *ClientInboundCommandMaker) MakeActiveCommand(Ctx service.IChannelContext) schedule.ICommand

新连接

func (*ClientInboundCommandMaker) MakeExceptionCommand

func (impl *ClientInboundCommandMaker) MakeExceptionCommand(ctx service.IChannelContext, err error) schedule.ICommand

触发异常

func (*ClientInboundCommandMaker) MakeInActiveCommand

func (impl *ClientInboundCommandMaker) MakeInActiveCommand(Ctx service.IChannelContext) schedule.ICommand

连接中断

func (*ClientInboundCommandMaker) MakeMessageReceivedCommand

func (impl *ClientInboundCommandMaker) MakeMessageReceivedCommand(Ctx service.IChannelContext, Data interface{}) schedule.ICommand

收到消息包

type ClientOutboundCommandMaker

type ClientOutboundCommandMaker struct {
}

func NewClientOutboundCommandMaker

func NewClientOutboundCommandMaker() (impl *ClientOutboundCommandMaker)

func (*ClientOutboundCommandMaker) MakeCloseCommand

请求关闭连接

func (*ClientOutboundCommandMaker) MakeExceptionCommand

func (impl *ClientOutboundCommandMaker) MakeExceptionCommand(ctx channel.ChannelContext, err error) schedule.ICommand

触发异常

func (*ClientOutboundCommandMaker) MakeMessageSendCommand

func (impl *ClientOutboundCommandMaker) MakeMessageSendCommand(Ctx channel.ChannelContext, Data interface{}) schedule.ICommand

下发消息包

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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