config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 5 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 {
	// AuthExpiryDelta is the delta in seconds to add to the current time to get the expiry time for the auth token.
	// TODO: consider only exporting via getter to prevent accidental mutation
	AuthExpiryDelta int64 `yaml:"auth_expiry_delta"`
	// TODO: consider breaking this out
	DBType     string `yaml:"db_type"`
	DSN        string `yaml:"dsn"`
	OmniRPCURL string `yaml:"omnirpc_url"`
	// bridges is a map of chainid->address
	Bridges map[uint32]string `yaml:"bridges"`
	Port    uint16            `yaml:"port"`
}

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.

Jump to

Keyboard shortcuts

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