Documentation
¶
Index ¶
- Constants
- type Config
- func (c Config) GetAccount() commonaccount.Config
- func (c Config) GetDevStore() FileDevStore
- 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) GetRedis() redisprovider.Config
- func (c Config) GetS3Store() s3store.Config
- func (c *Config) Init(a *app.App) (err error)
- func (c Config) Name() (name string)
- type FileDevStore
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"`
GrpcServer net.Config `yaml:"grpcServer"`
Metric metric.Config `yaml:"metric"`
S3Store s3store.Config `yaml:"s3Store"`
FileDevStore FileDevStore `yaml:"fileDevStore"`
Redis redisprovider.Config `yaml:"redis"`
Network nodeconf.Configuration `yaml:"network"`
NetworkStorePath string `yaml:"networkStorePath"`
NetworkUpdateIntervalSec int `yaml:"networkUpdateIntervalSec"`
}
func NewFromFile ¶
func (Config) GetAccount ¶
func (c Config) GetAccount() commonaccount.Config
func (Config) GetDevStore ¶
func (c Config) GetDevStore() FileDevStore
func (Config) GetNodeConf ¶
func (c Config) GetNodeConf() nodeconf.Configuration
func (Config) GetNodeConfStorePath ¶
func (Config) GetNodeConfUpdateInterval ¶
func (Config) GetRedis ¶
func (c Config) GetRedis() redisprovider.Config
func (Config) GetS3Store ¶
type FileDevStore ¶
type FileDevStore struct {
Path string `yaml:"path"`
}
Click to show internal directories.
Click to hide internal directories.