action

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: AGPL-3.0 Imports: 8 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 string
}

func (*BaseAction) PrepareSend

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

func (*BaseAction) Receive

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

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

func (*BaseAction) Response

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

* 处理返回消息

func (*BaseAction) Send

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

* 主动发送消息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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