config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 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
	Pactus      pactus.Config
	Polygon     polygon.Config
	Database    database.Config
	HTTPServer  http.Config
}

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