Documentation
¶
Index ¶
- Constants
- type Config
- func (c Config) GetAccount() commonaccount.Config
- func (c Config) GetDebugNet() net.Config
- func (c Config) GetHotSync() hotsync.Config
- func (c Config) GetMetric() metric.Config
- func (c Config) GetNet() net.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) GetSpace() commonspace.Config
- func (c Config) GetStorage() nodestorage.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 {
GrpcServer net.Config `yaml:"grpcServer"`
Account commonaccount.Config `yaml:"account"`
APIServer net.Config `yaml:"apiServer"`
Network nodeconf.Configuration `yaml:"network"`
NetworkStorePath string `yaml:"networkStorePath"`
NetworkUpdateIntervalSec int `yaml:"networkUpdateIntervalSec"`
Space commonspace.Config `yaml:"space"`
Storage nodestorage.Config `yaml:"storage"`
Metric metric.Config `yaml:"metric"`
Log logger.Config `yaml:"log"`
NodeSync nodesync.Config `yaml:"nodeSync"`
}
func NewFromFile ¶
func (Config) GetAccount ¶
func (c Config) GetAccount() commonaccount.Config
func (Config) GetDebugNet ¶
func (Config) GetHotSync ¶
func (Config) GetNodeConf ¶
func (c Config) GetNodeConf() nodeconf.Configuration
func (Config) GetNodeConfStorePath ¶
func (Config) GetNodeConfUpdateInterval ¶
func (Config) GetNodeSync ¶
func (Config) GetSpace ¶
func (c Config) GetSpace() commonspace.Config
func (Config) GetStorage ¶
func (c Config) GetStorage() nodestorage.Config
Click to show internal directories.
Click to hide internal directories.