Documentation ¶
Index ¶
- type API
- type Config
- func (config *Config) APIKey(v ...string) string
- func (config *Config) Currency(v ...string) string
- func (config *Config) IsValid() bool
- func (config *Config) Language(v ...string) string
- func (config *Config) Options() ConfigOpts
- func (config *Config) RefreshRate(v ...string) int64
- func (config *Config) Save()
- func (config *Config) ServiceName(v ...string) string
- func (config *Config) Symbols(v ...ConfigSymbol) ConfigSymbol
- type ConfigHolding
- type ConfigOpts
- type ConfigSymbol
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Config *Config // contains filtered or unexported fields }
API declared data types.
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config declared data types.
func (*Config) Options ¶
func (config *Config) Options() ConfigOpts
Options returns ConfigOpts name/value(s).
func (*Config) RefreshRate ¶
RefreshRate sets/returns the option value.
func (*Config) ServiceName ¶
ServiceName sets/returns the option value.
func (*Config) Symbols ¶
func (config *Config) Symbols(v ...ConfigSymbol) ConfigSymbol
Symbols sets/returns the option value.
type ConfigHolding ¶
ConfigHolding declared data types.
type ConfigOpts ¶
type ConfigOpts struct { ServiceName string `yaml:"service"` APIKey string `yaml:"apiKey"` Currency string `yaml:"currency"` Language string `yaml:"language"` RefreshRate int64 `yaml:"refreshRate"` Symbols ConfigSymbol `yaml:"symbols"` }
ConfigOpts declared data types.
Click to show internal directories.
Click to hide internal directories.