conf

package
v0.0.0-...-f2257e0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

Types

type Config

type Config struct {
	Database struct {
		Host     string `yaml:"host"`
		Port     int    `yaml:"port"`
		Name     string `yaml:"name"`
		Username string `yaml:"user" envconfig:"PGS_DB_USER"`
		Password string `yaml:"pass" envconfig:"PGS_DB_PASS"`
		SSL      bool   `yaml:"ssl"`
	} `yaml:"db"`
	ApiKeys []string `yaml:"api_keys"`
	Listen  struct {
		Address string `yaml:"address"`
		Port    string `yaml:"port"`
		Debug   bool   `yaml:"debug"`
	} `yaml:"listen"`
}
var Cfg *Config

Jump to

Keyboard shortcuts

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