configs

package
v0.0.0-...-03ce398 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_ENV = "APP_ENV"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AplicationEnv

type AplicationEnv string
const (
	PRODUCTION_ENV AplicationEnv = "production"
	DEVELOP_ENV    AplicationEnv = "develop"
	TEST_ENV       AplicationEnv = "test"
)

type Config

type Config struct {
	TELEGRAM_TOKEN  string `mapstructure:"TELEGRAM_TOKEN"`
	POSTGRES_USER   string `mapstructure:"POSTGRES_USER"`
	POSTGRES_PASS   string `mapstructure:"POSTGRES_PASS"`
	POSTGRES_DBNAME string `mapstructure:"POSTGRES_DBNAME"`
	POSTGRES_HOST   string `mapstructure:"POSTGRES_HOST"`
	POSTGRES_PORT   int    `mapstructure:"POSTGRES_PORT"`
}

func LoadConfig

func LoadConfig(path string) (config Config, err error)

Jump to

Keyboard shortcuts

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