config

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment string          `yaml:"environment"`
	Logger      logger.Config   `yaml:"logger"`
	Pactus      pactus.Config   `yaml:"pactus"`
	Polygon     evm.Config      `yaml:"polygon"` //! NEW EVM.
	Bsc         evm.Config      `yaml:"bsc"`
	Base        evm.Config      `yaml:"base"`
	Database    database.Config `yaml:"database"`
	HTTPServer  http.Config     `yaml:"http"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error represents an error in loading or validating config.

func (Error) Error

func (e Error) Error() string

type InvalidEnvironmentError

type InvalidEnvironmentError struct {
	Environment string
}

func (InvalidEnvironmentError) Error

func (e InvalidEnvironmentError) Error() string

Jump to

Keyboard shortcuts

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