Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Admin admin.Config `group:"Admin" namespace:"admin"` API api.Config `group:"API" namespace:"api"` CandlesV2 candlesv2.Config `group:"CandlesV2" namespace:"candlesv2"` Logging logging.Config `group:"Logging" namespace:"logging"` SQLStore sqlstore.Config `group:"Sqlstore" namespace:"sqlstore"` Gateway gateway.Config `group:"Gateway" namespace:"gateway"` Metrics metrics.Config `group:"Metrics" namespace:"metrics"` Broker broker.Config `group:"Broker" namespace:"broker"` Service service.Config `group:"Service" namespace:"service"` Pprof pprof.Config `group:"Pprof" namespace:"pprof"` GatewayEnabled encoding.Bool `choice:"true" choice:"false" description:" " long:"gateway-enabled"` NetworkHistory networkhistory.Config `group:"NetworkHistory" namespace:"networkhistory"` AutoInitialiseFromNetworkHistory encoding.Bool `` /* 196-byte string literal not displayed */ ChainID string `long:"chainID"` MaxMemoryPercent uint8 `description:"The maximum amount of memory reserved for the data node (default: 33%)" long:"max-memory-percent"` }
Config ties together all other application configuration types.
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig returns a set of default configs for all vega packages, as specified at the per package config level, if there is an error initialising any of the configs then this is returned.
func (Config) GetMaxMemoryFactor ¶ added in v0.66.0
type Empty ¶
type Empty struct{}
Empty is used when a command or sub-command receives no argument and has no execution.
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) ConfigExists ¶
func (*Loader) ConfigFilePath ¶
type VegaHomeFlag ¶
type VegaHomeFlag struct {
VegaHome string `description:"Path to the custom home for vega" long:"home"`
}
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is looking for updates in the configurations files.
func NewWatcher ¶
func NewWatcher(ctx context.Context, log *logging.Logger, vegaPaths paths.Paths, opts ...Option) (*Watcher, error)
NewWatcher instantiate a new watcher from the vega config files.
func (*Watcher) OnConfigUpdate ¶
OnConfigUpdate register a function to be called when the configuration is getting updated.
Click to show internal directories.
Click to hide internal directories.