action

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAction

type BaseAction struct {
	MsgType msgtype.MsgType
}

func (*BaseAction) PrepareSend

func (this *BaseAction) PrepareSend(peerId string, data interface{}, targetPeerId string) *msg.ChainMessage

func (*BaseAction) Receive

func (this *BaseAction) Receive(chainMessage *msg.ChainMessage) (*msg.ChainMessage, error)

* 接收消息进行处理,返回为空则没有返回消息,否则,有返回消息

func (*BaseAction) Response

func (this *BaseAction) Response(chainMessage *msg.ChainMessage) error

* 处理返回消息

func (*BaseAction) Send

func (this *BaseAction) Send(chainMessage *msg.ChainMessage) (*msg.ChainMessage, error)

* 主动发送消息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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