Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { 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 `long:"gateway-enabled" choice:"true" choice:"false" description:" "` Snapshot snapshot.Config `group:"Snapshot" namespace:"snapshot"` }
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.
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 `long:"home" description:"Path to the custom home for vega"`
}
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.