Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type INode ¶
type INode interface { types.ICommand GetSettings() ISettings GetWrapperDB() IWrapperDB GetNetworkNode() network.INode GetMessageQueue() queue.IMessageQueue GetListPubKeys() asymmetric.IListPubKeys GetLogger() logger.ILogger HandleFunc(uint32, IHandlerF) INode HandleMessage(message.IMessage) // in runtime BroadcastPayload(asymmetric.IPubKey, adapters.IPayload) error FetchPayload(asymmetric.IPubKey, adapters.IPayload) ([]byte, error) }
func NewNode ¶
func NewNode( pSett ISettings, pLogger logger.ILogger, pWrapperDB IWrapperDB, pNetwork network.INode, pQueue queue.IMessageQueue, pFriends asymmetric.IListPubKeys, ) INode
type ISettings ¶
type ISettings interface { GetServiceName() string GetNetworkMask() uint64 GetRetryEnqueue() uint64 GetFetchTimeWait() time.Duration }
func NewSettings ¶
type IWrapperDB ¶ added in v1.5.6
type IWrapperDB interface { types.ICloser Get() database.IKVDatabase Set(database.IKVDatabase) IWrapperDB }
func NewWrapperDB ¶ added in v1.5.6
func NewWrapperDB() IWrapperDB
Source Files ¶
Click to show internal directories.
Click to hide internal directories.