configs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDefaultExchangeTomlString

func GenerateDefaultExchangeTomlString() bytes.Buffer

GenerateDefaultExchangeTomlString creates the toml file string containing the default configs for querying each exchange.

func ReadExchangeStartupConfigFile

func ReadExchangeStartupConfigFile(homeDir string) map[types.ExchangeId]*types.ExchangeStartupConfig

ReadExchangeStartupConfigFile gets a mapping of `exchangeIds` to `ExchangeStartupConfigs` where `ExchangeStartupConfig` for querying exchanges for market prices comes from parsing a TOML file in the config directory. NOTE: if the config file is not found for the price-daemon, return the static exchange startup config.

func WriteDefaultPricefeedExchangeToml

func WriteDefaultPricefeedExchangeToml(homeDir string)

WriteDefaultPricefeedExchangeToml reads in the toml string for the pricefeed client and writes said string to the config folder as a toml file if the config file does not exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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