config

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

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Environment string `mapstructure:"environment"`
}

type Config

type Config struct {
	Database DatabaseConfig `mapstructure:"database"`
	HTTP     HTTPConfig     `mapstructure:"http"`
	App      AppConfig      `mapstructure:"app"`
}

func Load

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

type DatabaseConfig

type DatabaseConfig struct {
	User     string     `mapstructure:"user"`
	Password string     `mapstructure:"password"`
	Host     string     `mapstructure:"host"`
	Port     string     `mapstructure:"port"`
	Name     string     `mapstructure:"name"`
	Pool     poolConfig `mapstructure:"pool"`
}

type HTTPConfig

type HTTPConfig struct {
	Host       string `mapstructure:"host"`
	Port       string `mapstructure:"port"`
	TLSEnabled bool   `mapstructure:"tls_enabled"`
}

Jump to

Keyboard shortcuts

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