Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) GetAccount() commonaccount.Config
- func (c *Config) GetDrpc() rpc.Config
- func (c *Config) GetMetric() metric.Config
- func (c *Config) GetNodeConf() nodeconf.Configuration
- func (c *Config) GetNodeConfStorePath() string
- func (c *Config) GetQuic() quic.Config
- func (c *Config) GetYamux() yamux.Config
- func (c *Config) Init(a *app.App) (err error)
- func (c *Config) Name() (name string)
- type Mongo
- type Stripe
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"` Log logger.Config `yaml:"log"` Account commonaccount.Config `yaml:"account"` // TODO: required somehow NetworkStorePath string `yaml:"networkStorePath"` Network nodeconf.Configuration `yaml:"network"` Quic quic.Config `yaml:"quic"` Yamux yamux.Config `yaml:"yamux"` Mongo Mongo `yaml:"mongo"` Stripe Stripe `yaml:"stripe"` Metric metric.Config `yaml:"metric"` }
func NewFromFile ¶
func (*Config) GetAccount ¶
func (c *Config) GetAccount() commonaccount.Config
func (*Config) GetNodeConf ¶
func (c *Config) GetNodeConf() nodeconf.Configuration
func (*Config) GetNodeConfStorePath ¶
type Stripe ¶
type Stripe struct { ApiKey string `yaml:"apiKey"` WebhooksHttpPort uint16 `yaml:"webhooksHttpPort"` WebhooksSecret string `yaml:"webhooksSecret"` RunWebhooksServer bool `yaml:"runWebhooksServer"` UseNameService bool `yaml:"useNameService"` NameserviceAdminPeerKey string `yaml:"nameserviceAdminPeerKey"` }
Click to show internal directories.
Click to hide internal directories.