config

package
v0.0.0-...-1bdb0da Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Environment string `mapstructure:"ENV"`
	Host        string `mapstructure:"HOST"`
	Port        string `mapstructure:"PORT"`
}

type AppConfig

type AppConfig struct {
	API      *APIConfig      `mapstructure:"API"`
	Postgres *PostgresConfig `mapstructure:"POSTGRES"`
}

func Load

func Load(configFile string) (*AppConfig, error)

type PostgresConfig

type PostgresConfig struct {
	Host     string `mapstructure:"HOST"`
	Port     string `mapstructure:"PORT"`
	User     string `mapstructure:"USER"`
	Password string `mapstructure:"PASSWORD"`
	DB       string `mapstructure:"DB"`
}

Jump to

Keyboard shortcuts

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