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.
Click to show internal directories.
Click to hide internal directories.