Documentation ¶
Index ¶
- func ConfigComment(t interface{}) ([]byte, error)
- func FromFile(path string, def interface{}) (interface{}, error)
- func FromReader(reader io.Reader, def interface{}) (interface{}, error)
- func StorageFromFile(path string, def *stores.StorageConfig) (*stores.StorageConfig, error)
- func StorageFromReader(reader io.Reader) (*stores.StorageConfig, error)
- func WriteStorageFile(path string, config stores.StorageConfig) error
- type API
- type Client
- type Common
- type DealmakingConfig
- type Duration
- type FullNode
- type Libp2p
- type Metrics
- type MinerFeeConfig
- type Pubsub
- type SealingConfig
- type StorageMiner
- type Wallet
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 assumed.
func FromReader ¶
FromReader loads config from a reader instance.
func StorageFromFile ¶ added in v0.3.0
func StorageFromFile(path string, def *stores.StorageConfig) (*stores.StorageConfig, error)
func StorageFromReader ¶ added in v0.3.0
func StorageFromReader(reader io.Reader) (*stores.StorageConfig, error)
func WriteStorageFile ¶ added in v0.3.0
func WriteStorageFile(path string, config stores.StorageConfig) error
Types ¶
type DealmakingConfig ¶ added in v0.4.0
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 AnnounceAddresses []string NoAnnounceAddresses []string BootstrapPeers []string ProtectedPeers []string ConnMgrLow uint ConnMgrHigh uint ConnMgrGrace Duration }
Libp2p contains configs for libp2p
type MinerFeeConfig ¶ added in v0.5.0
type SealingConfig ¶ added in v0.5.0
type StorageMiner ¶
type StorageMiner struct { Common Dealmaking DealmakingConfig Sealing SealingConfig Storage sectorstorage.SealerConfig Fees MinerFeeConfig }
StorageMiner is a miner config
func DefaultStorageMiner ¶
func DefaultStorageMiner() *StorageMiner
Click to show internal directories.
Click to hide internal directories.