config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 6 Imported by: 0

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"`
}

Config is the configuration for the RFQ Quoter.

func LoadConfig

func LoadConfig(path string) (config Config, err error)

LoadConfig loads the config from the given path.

func (Config) GetRelayAckTimeout added in v0.22.0

func (c Config) GetRelayAckTimeout() time.Duration

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.

Jump to

Keyboard shortcuts

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