config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultUpdateInterval is the default value for how frequently slinky updates aggregate price responses.
	DefaultUpdateInterval = 250000000
	// DefaultMaxPriceAge is the default value for the oldest price considered in an aggregate price response by slinky.
	DefaultMaxPriceAge = 120000000000
	// DefaultPrometheusServerAddress is the default value for the prometheus server address in slinky.
	DefaultPrometheusServerAddress = "0.0.0.0:8002"
	// DefaultMetricsEnabled is the default value for enabling prometheus metrics in slinky.
	DefaultMetricsEnabled = true
	// DefaultHost is the default for the slinky oracle server host.
	DefaultHost = "0.0.0.0"
	// DefaultPort is the default for the slinky oracle server port.
	DefaultPort = "8080"

	// SlinkyConfigEnvironmentPrefix is the prefix for environment variables that override the slinky config.
	SlinkyConfigEnvironmentPrefix = "SLINKY_CONFIG"
)

Variables

This section is empty.

Functions

func DefaultOracleConfig

func DefaultOracleConfig() config.OracleConfig

DefaultOracleConfig returns the default configuration for the slinky oracle.

func ReadOracleConfigWithOverrides

func ReadOracleConfigWithOverrides(path string, marketMapProvider string) (config.OracleConfig, error)

ReadOracleConfigWithOverrides reads a config from a file and returns the config.

func SetDefaults

func SetDefaults()

Types

This section is empty.

Jump to

Keyboard shortcuts

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