config

package
v0.0.0-...-9d97ec1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 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 {
	Port int    `yaml:"port"`
	Env  string `yaml:"env"`
	DB   DB     `yaml:"db"`
}

func MustLoad

func MustLoad() *Config

type DB

type DB struct {
	Postgres Postgres `yaml:"postgres"`
}

type Postgres

type Postgres struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Name     string `yaml:"name"`
	User     string `json:"user"`
	Password string `json:"password"`
}

func (*Postgres) GetDSN

func (p *Postgres) GetDSN() string

Jump to

Keyboard shortcuts

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