Documentation ¶
Index ¶
- func NewCommonMessenger(marshalizer marshal.Marshalizer, messenger consensus.P2PMessenger, ...) (*commonMessenger, error)
- func NewMetaChainMessenger(marshalizer marshal.Marshalizer, messenger consensus.P2PMessenger, ...) (*metaChainMessenger, error)
- func NewShardChainMessenger(marshalizer marshal.Marshalizer, messenger consensus.P2PMessenger, ...) (*shardChainMessenger, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommonMessenger ¶
func NewCommonMessenger( marshalizer marshal.Marshalizer, messenger consensus.P2PMessenger, privateKey crypto.PrivateKey, shardCoordinator sharding.Coordinator, singleSigner crypto.SingleSigner, ) (*commonMessenger, error)
NewCommonMessenger will return a new instance of a commonMessenger
func NewMetaChainMessenger ¶
func NewMetaChainMessenger( marshalizer marshal.Marshalizer, messenger consensus.P2PMessenger, privateKey crypto.PrivateKey, shardCoordinator sharding.Coordinator, singleSigner crypto.SingleSigner, ) (*metaChainMessenger, error)
NewMetaChainMessenger creates a new metaChainMessenger object
func NewShardChainMessenger ¶
func NewShardChainMessenger( marshalizer marshal.Marshalizer, messenger consensus.P2PMessenger, privateKey crypto.PrivateKey, shardCoordinator sharding.Coordinator, singleSigner crypto.SingleSigner, ) (*shardChainMessenger, error)
NewShardChainMessenger creates a new shardChainMessenger object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.