config

package
v0.0.0-...-95c1afc Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 4 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 {
	Env  string `yaml:"env" env-default:"local"`
	Port string `yaml:"port" env-defaul:"8000"`
	Postgres
}

func MustLoad

func MustLoad() Config

type Postgres

type Postgres struct {
	Host     string `env:"DB_HOST" env-default:"localhost"`
	DB_port  string `env:"DB_PORT" env-default:"5432"`
	Username string `env:"POSTGRES_USER" env-default:"root"`
	Password string `env:"POSTGRES_PASSWORD" env-default:"postgres"`
	DBName   string `env:"DB_NAME" env-default:"chat"`
	SSLMode  string `env:"SSL_MODE" env-default:"disable"`
}

Jump to

Keyboard shortcuts

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