Documentation ¶
Overview ¶
Package config implements the configuration parser for the RFQ Quoter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database DatabaseConfig `yaml:"database"` OmniRPCURL string `yaml:"omnirpc_url"` // bridges is a map of chainid->address Bridges map[uint32]string `yaml:"bridges"` Port string `yaml:"port"` RelayAckTimeout time.Duration `yaml:"relay_ack_timeout"` MaxQuoteAge time.Duration `yaml:"max_quote_age"` }
Config is the configuration for the RFQ Quoter.
func LoadConfig ¶
LoadConfig loads the config from the given path.
func (Config) GetMaxQuoteAge ¶ added in v1.2.0
GetMaxQuoteAge returns the max quote age.
func (Config) GetRelayAckTimeout ¶ added in v0.22.0
GetRelayAckTimeout returns the relay ack timeout.
type DatabaseConfig ¶
type DatabaseConfig struct { Type string `yaml:"type"` DSN string `yaml:"dsn"` // Data Source Name }
DatabaseConfig represents the configuration for the database.
Click to show internal directories.
Click to hide internal directories.