configCollectors

package
v1.4.478 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: GPL-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFileConnectors

func ConfigFileConnectors(exchange string, filetype string) string

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

func ReadJSONFromConfig(filename string) (content []byte, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL