Documentation ¶
Index ¶
- type Config
- func (rc *Config) Get(key string) interface{}
- func (rc *Config) GetBigInt(key string) *big.Int
- func (rc *Config) GetBigIntByFlag(flag cli.StringFlag) *big.Int
- func (rc *Config) GetBool(key string) bool
- func (rc *Config) GetBoolByFlag(flag cli.BoolFlag) bool
- func (rc *Config) GetHermesID() (string, error)
- func (rc *Config) GetInt64(key string) int64
- func (rc *Config) GetInt64ByFlag(flag cli.Int64Flag) int64
- func (rc *Config) GetString(key string) string
- func (rc *Config) GetStringByFlag(flag cli.StringFlag) string
- func (rc *Config) GetStringSlice(key string) []string
- func (rc *Config) GetStringSliceByFlag(flag cli.StringSliceFlag) []string
- func (rc *Config) RefreshRemoteConfig() error
- type Fetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config - remote config struct
func (*Config) GetBigIntByFlag ¶
GetBigIntByFlag shorthand for getting and parsing a configuration value for cli.StringFlag that's a big.Int.
func (*Config) GetBoolByFlag ¶
GetBoolByFlag shorthand for getting current configuration value for cli.BoolFlag.
func (*Config) GetHermesID ¶
GetHermesID returns the current hermes id.
func (*Config) GetInt64ByFlag ¶
GetInt64ByFlag shorthand for getting and parsing a configuration value for cli.StringFlag that's a int64.
func (*Config) GetStringByFlag ¶
GetStringByFlag shorthand for getting current configuration value for cli.BoolFlag.
func (*Config) GetStringSlice ¶
GetStringSlice returns config value as []string.
func (*Config) GetStringSliceByFlag ¶
GetStringSliceByFlag shorthand for getting and parsing a configuration value for cli.StringFlag that's a []string.
func (*Config) RefreshRemoteConfig ¶
RefreshRemoteConfig - will fetch latest config