Documentation ¶
Index ¶
- Variables
- 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 Backup
- type Chainstore
- type Client
- type Common
- type DealmakingConfig
- type Duration
- type FeeConfig
- type FullNode
- type Libp2p
- type Metrics
- type MinerAddressConfig
- type MinerFeeConfig
- type Pubsub
- type SealingConfig
- type Splitstore
- type StorageMiner
- type Wallet
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDefaultMaxFee = types.MustParseEPK("0.007")
View Source
var DefaultSimultaneousTransfers = uint64(20)
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 ¶
func StorageFromFile(path string, def *stores.StorageConfig) (*stores.StorageConfig, error)
func StorageFromReader ¶
func StorageFromReader(reader io.Reader) (*stores.StorageConfig, error)
func WriteStorageFile ¶
func WriteStorageFile(path string, config stores.StorageConfig) error
Types ¶
type Chainstore ¶
type Chainstore struct { EnableSplitstore bool Splitstore Splitstore }
type DealmakingConfig ¶
type DealmakingConfig struct { ConsiderOnlineStorageDeals bool ConsiderOfflineStorageDeals bool ConsiderOnlineRetrievalDeals bool ConsiderOfflineRetrievalDeals bool // ConsiderVerifiedStorageDeals bool // ConsiderUnverifiedStorageDeals bool PieceCidBlocklist []cid.Cid ExpectedSealDuration Duration // The amount of time to wait for more deals to arrive before // publishing PublishMsgPeriod Duration // The maximum number of deals to include in a single PublishStorageDeals // message MaxDealsPerPublishMsg uint64 Filter string RetrievalFilter string MaxOngoingServedRetrievals int }
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 FullNode ¶
type FullNode struct { Common Client Client Metrics Metrics Wallet Wallet Fees FeeConfig Chainstore Chainstore }
FullNode is a full node config
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 MinerAddressConfig ¶
type MinerAddressConfig struct { PreCommitControl []string CommitControl []string TerminateControl []string // DisableOwnerFallback disables usage of the owner address for messages // sent automatically DisableOwnerFallback bool // DisableWorkerFallback disables usage of the worker address for messages // sent automatically, if control addresses are configured. // A control address that doesn't have enough funds will still be chosen // over the worker address if this flag is set. DisableWorkerFallback bool }
type MinerFeeConfig ¶
type SealingConfig ¶
type Splitstore ¶
type StorageMiner ¶
type StorageMiner struct { Common Dealmaking DealmakingConfig Sealing SealingConfig Storage sectorstorage.SealerConfig Fees MinerFeeConfig Addresses MinerAddressConfig }
StorageMiner is a miner config
func DefaultStorageMiner ¶
func DefaultStorageMiner() *StorageMiner
Click to show internal directories.
Click to hide internal directories.