config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: GPL-3.0 Imports: 1 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 {
	ServerHost        string `env:"SERVER_HOST"   env-default:"0.0.0.0"`
	ServerPort        int    `env:"SERVER_PORT"   env-default:"8080"`
	PostgresURI       string `env:"POSTGRES_URI"  env-required:""`
	Debug             bool   `env:"DEBUG"`
	DisableStacktrace bool   `env:"NO_STACKTRACE"`
}

func New

func New() (*Config, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳