Documentation ¶
Index ¶
- func GetHostAccessor() types.HostAccessor
- func InitNodeInfo(baseCfg *config.BaseConfig, p2pCfg *config.P2PConfig, version string, ...)
- func NodeID() types.PeerID
- func NodePrivKey() crypto.PrivKey
- func NodePubKey() crypto.PubKey
- func NodeSID() string
- func NodeVersion() string
- func StartTime() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHostAccessor ¶
func GetHostAccessor() types.HostAccessor
func InitNodeInfo ¶
func InitNodeInfo(baseCfg *config.BaseConfig, p2pCfg *config.P2PConfig, version string, logger *log.Logger)
InitNodeInfo initializes node-specific informations like node id. Caution: this must be called before all the goroutines are started.
func NodePrivKey ¶
NodePrivKey returns the private key of the node.
func NodeVersion ¶
func NodeVersion() string
NodeVersion returns the version of this binary. TODO: It's not good that version info is in p2pkey package
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.