config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 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 {
	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"`
}

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.

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