config

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 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 AppConfig

type AppConfig struct {
	Env       string `env:"ENV",notEmpty`
	SentryDSN string `env:"SENTRY_DSN",notEmpty`
}

func GetAppConfig

func GetAppConfig() *AppConfig

func NewAppConfig

func NewAppConfig() *AppConfig

type DBConfig

type DBConfig struct {
	User     string `env:"MYSQL_USER",notEmpty`
	Pass     string `env:"MYSQL_PASSWORD",notEmpty`
	Protocol string `env:"MYSQL_PROTOCOL",notEmpty`
	Database string `env:"MYSQL_DATABASE",notEmpty`
}

func GetDBConfig

func GetDBConfig() *DBConfig

func NewDBConfig

func NewDBConfig() *DBConfig

type ExtAPIConfig added in v0.1.4

type ExtAPIConfig struct {
	URL string `env:"EXTERNAL_API_URL",notEmpty`
}

func GetExtAPIConfig added in v0.1.4

func GetExtAPIConfig() *ExtAPIConfig

func NewExtAPIConfig added in v0.1.4

func NewExtAPIConfig() *ExtAPIConfig

Jump to

Keyboard shortcuts

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