Documentation ¶
Index ¶
- Constants
- type Config
- func (c Config) GetAccount() commonaccount.Config
- func (c Config) GetDebugServer() debugserver.Config
- func (c Config) GetDrpc() rpc.Config
- func (c Config) GetHotSync() hotsync.Config
- func (c Config) GetLimiterConf() limiter.Config
- func (c Config) GetMetric() metric.Config
- func (c Config) GetNodeConf() nodeconf.Configuration
- func (c Config) GetNodeConfStorePath() string
- func (c Config) GetNodeConfUpdateInterval() int
- func (c Config) GetNodeSync() nodesync.Config
- func (c Config) GetQuic() quic.Config
- func (c Config) GetSpace() config.Config
- func (c Config) GetStorage() nodestorage.Config
- func (c Config) GetStreamConfig() streampool.StreamConfig
- 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 { Drpc rpc.Config `yaml:"drpc"` Account commonaccount.Config `yaml:"account"` APIServer debugserver.Config `yaml:"apiServer"` Network nodeconf.Configuration `yaml:"network"` NetworkStorePath string `yaml:"networkStorePath"` NetworkUpdateIntervalSec int `yaml:"networkUpdateIntervalSec"` Space config.Config `yaml:"space"` Storage nodestorage.Config `yaml:"storage"` Metric metric.Config `yaml:"metric"` Log logger.Config `yaml:"log"` NodeSync nodesync.Config `yaml:"nodeSync"` Yamux yamux.Config `yaml:"yamux"` Limiter limiter.Config `yaml:"limiter"` Quic quic.Config `yaml:"quic"` }
func NewFromFile ¶
func (Config) GetAccount ¶
func (c Config) GetAccount() commonaccount.Config
func (Config) GetDebugServer ¶ added in v0.2.0
func (c Config) GetDebugServer() debugserver.Config
func (Config) GetHotSync ¶
func (Config) GetLimiterConf ¶ added in v0.4.0
func (Config) GetNodeConf ¶
func (c Config) GetNodeConf() nodeconf.Configuration
func (Config) GetNodeConfStorePath ¶
func (Config) GetNodeConfUpdateInterval ¶
func (Config) GetNodeSync ¶
func (Config) GetStorage ¶
func (c Config) GetStorage() nodestorage.Config
func (Config) GetStreamConfig ¶ added in v0.4.0
func (c Config) GetStreamConfig() streampool.StreamConfig
Click to show internal directories.
Click to hide internal directories.