message

package
v0.0.0-...-868bdbc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountMessagePlugin

type AccountMessagePlugin struct {
	*network.Plugin
}

AccountMessagePlugin will receive all Account specific messages.

func (*AccountMessagePlugin) Receive

func (state *AccountMessagePlugin) Receive(ctx *network.PluginContext) error

Receive handles account specific messages

type BlockMessagePlugin

type BlockMessagePlugin struct {
	*network.Plugin
}

BlockMessagePlugin will receive all Block specific messages.

func (*BlockMessagePlugin) Receive

func (state *BlockMessagePlugin) Receive(ctx *network.PluginContext) error

Receive handles block specific received messages

type TransactionMessagePlugin

type TransactionMessagePlugin struct {
	*network.Plugin
	// contains filtered or unexported fields
}

TransactionMessagePlugin will receive all Transaction specific messages.

func NewTransactionMessagePlugin

func NewTransactionMessagePlugin(env string) *TransactionMessagePlugin

NewTransactionMessagePlugin returns a TransactionMessagePllugin with given env.

func (*TransactionMessagePlugin) Receive

func (state *TransactionMessagePlugin) Receive(ctx *network.PluginContext) error

Receive to handle transaction requests

type TxType

type TxType int

TxType ...

const (
	Update TxType = iota
	Lock
	Redeem
)

func (TxType) String

func (i TxType) String() string

Jump to

Keyboard shortcuts

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