config

package
v0.0.0-...-82fd2f4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT 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 {
	Port             int    `env:"APP_CONTAINER_PORT"`
	DatabaseHost     string `env:"POSTGRES_HOST"`
	DatabaseName     string `env:"POSTGRES_DB"`
	DatabaseUser     string `env:"POSTGRES_USER"`
	DatabasePassword string `env:"POSTGRES_PASSWORD"`
	DatabasePort     int    `env:"POSTGRES_CONTAINER_PORT"`
	DatabaseSSLMODE  string `env:"POSTGRES_SSLMODE"`
}

func GetConfig

func GetConfig() (*Config, error)

Jump to

Keyboard shortcuts

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