Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App application root.
func (*App) Creds ¶
func (a *App) Creds() credentials.TransportCredentials
Creds a kludge to ease integration testing. TODO: (screwyprof) read keys on client side.
type Config ¶
type Config struct { CfgPath string ListenAddr string `yaml:"address"` DataDir string `yaml:"data_dir" required:"true" default:"./data"` LogLevel string `yaml:"log_level" required:"true" default:"DEBUG"` EthCfg accounts.EthConfig `yaml:"ethereum" required:"true"` OrdersCleanUpPeriod string `yaml:"orders_cleanup_period" required:"true" default:"1m"` OrdersTTL string `yaml:"orders_ttl" required:"true" default:"5m"` }
Config application configuration object.
func (*Config) WithOptions ¶
WithOptions sets the given options.
type Option ¶
type Option func(f *Config)
Option is a configuration parameter.
func WithConfigPath ¶
WithConfigPath sets the path to config file to load options from.
Click to show internal directories.
Click to hide internal directories.