Documentation
¶
Overview ¶
Package msg defines the interface for different message brokers.
Index ¶
Constants ¶
View Source
const ( EXIT = -1 ADDRESS = 0 TX = 1 )
Types of object for wallet requests.
View Source
const ( LISTEN = 0 UNLISTEN = 1 )
Actions to be applied to objects for wallet requests.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgBroker ¶
type MsgBroker interface { Setup(interface{}) error Close() error // methods for wallet service SendRequest(net string, r WalletReq) error GetEvents(net string, mut *sync.Mutex) (<-chan types.Trans, <-chan error, error) // methods for explorer service GetReqs(net string, mut *sync.Mutex) (<-chan WalletReq, <-chan error, error) SendTrans(net string, t []types.Trans) error }
Click to show internal directories.
Click to hide internal directories.