Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigComment ¶
func FromFile ¶
FromFile loads config from a specified file overriding defaults specified in the def parameter. If file does not exist or is empty defaults are asummed.
func FromReader ¶
FromReader loads config from a reader instance.
Types ¶
type Duration ¶
Duration is a wrapper type for time.Duration for decoding and encoding from/to TOML
func (Duration) MarshalText ¶
func (*Duration) UnmarshalText ¶
UnmarshalText implements interface for TOML decoding
type Libp2p ¶
type Libp2p struct { ListenAddresses []string BootstrapPeers []string ProtectedPeers []string ConnMgrLow uint ConnMgrHigh uint ConnMgrGrace Duration }
Libp2p contains configs for libp2p
type SectorBuilder ¶
type StorageMiner ¶
type StorageMiner struct { Common SectorBuilder SectorBuilder }
StorageMiner is a storage miner config
func DefaultStorageMiner ¶
func DefaultStorageMiner() *StorageMiner
Click to show internal directories.
Click to hide internal directories.