Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Driver driver
View Source
var Event event
View Source
var States state
Functions ¶
This section is empty.
Types ¶
type ExternalProcessor ¶
type ExternalProcessor interface { EventProcessor(event enum.Element, customerData []byte) NewDataBasedOnConsensus(data ICustomerData) (newData ICustomerData, err error) CustomerDataToConsensus(lastCustomerData []byte) (data ICustomerData, err error) CustomerDataFromConsensus(data []byte) (customData ICustomerData, err error) }
type IConsensusService ¶
type IConsensusService interface { Load(networkService network.IService, processor ExternalProcessor) Start(cfg interface{}) (err error) Stop() (err error) Feed(msg message.Message) (reply *message.Message) RegisterExternalProcessor(processor ExternalProcessor) GetMessageFamily() string GetExternalProcessor() (processor ExternalProcessor) GetConsensusCustomerData(msg message.Message) (data []byte, err error) GetLastConsensusCustomerData() []byte StaticInformation() interface{} }
func Load ¶
func Load(service IConsensusService, ns network.IService, processor ExternalProcessor) IConsensusService
type ICustomerData ¶
Click to show internal directories.
Click to hide internal directories.