Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Context *common.Context // Callback is the callback for the motor Callback common.NodeCallback // GroupIDs is the list of peer ids for the node GroupIDs []party.ID // SelfPartyID is the party id for the node SelfPartyID party.ID }
Config is the configuration for the node
func DefaultConfig ¶
DefaultConfig returns the default configuration
type Option ¶
Option is a function that configures a Node
func WithGroupIds ¶
WithGroupIds sets the peer ids for the node
func WithNodeCallback ¶
func WithNodeCallback(callback common.NodeCallback) Option
WithNodeCallback sets the callback for the motor
func WithPartyId ¶
WithPartyId sets the party id for the node. This is to be replaced by the User defined label for the device
type StoreType ¶ added in v0.3.0
type StoreType string
StoreType is the type of a store
const ( // DB_EVENT_LOG_STORE is a store that stores events DB_EVENT_LOG_STORE StoreType = "eventlog" // DB_KEY_VALUE_STORE is a store that stores key-value pairs DB_KEY_VALUE_STORE StoreType = "keyvalue" // DB_DOCUMENT_STORE is a store that stores documents DB_DOCUMENT_STORE StoreType = "docstore" )
Click to show internal directories.
Click to hide internal directories.