Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFileConnectors ¶
ConfigFileConnectors returns a path to folder @exchange in config folder if @filteype is empty. If @filteype is a filetype it returns the path to file @exchange as a @filteype file.
func ReadJSONFromConfig ¶ added in v1.4.0
ReadJSONFromConfig reads a json file from the config folder and returns the byte slice of items.
Types ¶
type ConfigCollectors ¶
type ConfigCollectors struct {
Coins []dia.ExchangePair
}
func NewConfigCollectors ¶
func NewConfigCollectors(exchange string, filetype string) *ConfigCollectors
func NewConfigCollectorsIfExists ¶
func NewConfigCollectorsIfExists(exchange string, filetype string) *ConfigCollectors
func (*ConfigCollectors) AllPairs ¶
func (c *ConfigCollectors) AllPairs() []dia.ExchangePair
func (*ConfigCollectors) Exchanges ¶
func (c *ConfigCollectors) Exchanges() []string
func (*ConfigCollectors) IsSymbolInConfig ¶
func (c *ConfigCollectors) IsSymbolInConfig(symbol string) bool
Click to show internal directories.
Click to hide internal directories.