Documentation ¶
Index ¶
- Constants
- type Config
- func (c Config) GetAccount() commonaccount.Config
- func (c Config) GetAccountLimit() accountlimit.SpaceLimits
- func (c Config) GetDrpc() rpc.Config
- func (c Config) GetMetric() metric.Config
- func (c Config) GetMongo() db.Mongo
- func (c Config) GetNodeConf() nodeconf.Configuration
- func (c Config) GetNodeConfStorePath() string
- func (c Config) GetNodeConfUpdateInterval() int
- func (c Config) GetQuic() quic.Config
- func (c Config) GetSpaceStatus() spacestatus.Config
- func (c Config) GetYamux() yamux.Config
- func (c *Config) Init(a *app.App) (err error)
- func (c Config) Name() (name string)
Constants ¶
View Source
const CName = "config"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Account commonaccount.Config `yaml:"account"` Drpc rpc.Config `yaml:"drpc"` Metric metric.Config `yaml:"metric"` Network nodeconf.Configuration `yaml:"network"` NetworkStorePath string `yaml:"networkStorePath"` NetworkUpdateIntervalSec int `yaml:"networkUpdateIntervalSec"` Mongo db.Mongo `yaml:"mongo"` SpaceStatus spacestatus.Config `yaml:"spaceStatus"` Yamux yamux.Config `yaml:"yamux"` Quic quic.Config `yaml:"quic"` AccountLimits accountlimit.SpaceLimits `yaml:"defaultLimits"` }
func NewFromFile ¶
func (Config) GetAccount ¶
func (c Config) GetAccount() commonaccount.Config
func (Config) GetAccountLimit ¶ added in v0.3.15
func (c Config) GetAccountLimit() accountlimit.SpaceLimits
func (Config) GetNodeConf ¶
func (c Config) GetNodeConf() nodeconf.Configuration
func (Config) GetNodeConfStorePath ¶
func (Config) GetNodeConfUpdateInterval ¶
func (Config) GetSpaceStatus ¶
func (c Config) GetSpaceStatus() spacestatus.Config
Click to show internal directories.
Click to hide internal directories.