Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPort = uint(0) DefaultAddress = "0.0.0.0" DefaultRole = "worker" DefaultPeerDB = "peer-db" DefaultFunctionDB = "function-db" DefaultConcurrency = uint(node.DefaultConcurrency) DefaultUseWebsocket = false DefaultWorkspace = "workspace" )
Default values.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Role string `koanf:"role"` Concurrency uint `koanf:"concurrency"` BootNodes []string `koanf:"boot-nodes"` Workspace string `koanf:"workspace"` // TODO: Check - does a head node ever use a workspace? LoadAttributes bool `koanf:"attributes"` // TODO: Head node probably doesn't need attributes..? Topics []string `koanf:"topics"` PeerDatabasePath string `koanf:"peer-db"` FunctionDatabasePath string `koanf:"function-db"` // TODO: Head node doesn't need a function database. Log Log `koanf:"log"` Connectivity Connectivity `koanf:"connectivity"` Head Head `koanf:"head"` Worker Worker `koanf:"worker"` }
Config describes the Blockless configuration options.
type Connectivity ¶
type Connectivity struct { Address string `koanf:"address"` Port uint `koanf:"port"` PrivateKey string `koanf:"private-key"` DialbackAddress string `koanf:"dialback-address"` DialbackPort uint `koanf:"dialback-port"` Websocket bool `koanf:"websocket"` WebsocketPort uint `koanf:"websocket-port"` WebsocketDialbackPort uint `koanf:"websocket-dialback-port"` }
Connectivity describes the libp2p host that the node will use.
Click to show internal directories.
Click to hide internal directories.