configs

package
v0.0.0-...-baf6593 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 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 ReadExchangeQueryConfigFile

func ReadExchangeQueryConfigFile(homeDir string) map[types.ExchangeId]*types.ExchangeQueryConfig

ReadExchangeQueryConfigFile gets a mapping of `exchangeIds` to `ExchangeQueryConfigs` where `ExchangeQueryConfig` 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 query 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