protoManager

package
v0.0.0-...-c9d2d86 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoManager

type ProtoManager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewProtoManager

func NewProtoManager() *ProtoManager

func (*ProtoManager) CreateStatusMsg

func (pm *ProtoManager) CreateStatusMsg() (*proto.Message, error)

func (*ProtoManager) Handle

func (pm *ProtoManager) Handle(sendPeer *peer.Peer, msg *proto.Message) error

func (*ProtoManager) InitAndRegisterWorker

func (pm *ProtoManager) InitAndRegisterWorker()

func (*ProtoManager) RegisterWorker

func (pm *ProtoManager) RegisterWorker(protocalID mproto.ProtoID, workers []mpool.VmWorker) error

func (*ProtoManager) SetBlockChain

func (pm *ProtoManager) SetBlockChain(bc *blockchain.Blockchain)

Jump to

Keyboard shortcuts

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