config

package
v0.0.0-...-72abcba Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 3 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 {
	AppName        string `mapstructure:"APP_NAME"`
	AppEnv         string `mapstructure:"APP_ENV"`
	AppLogPath     string `mapstructure:"APP_LOG_PATH"`
	DbHost         string `mapstructure:"DB_HOST"`
	DbPort         string `mapstructure:"DB_PORT"`
	DbName         string `mapstructure:"DB_NAME"`
	DbUser         string `mapstructure:"DB_USER"`
	DbPassword     string `mapstructure:"DB_PASSWORD"`
	RabbitUser     string `mapstructure:"RABBIT_USER"`
	RabbitPassword string `mapstructure:"RABBIT_PASSWORD"`
	RabbitHost     string `mapstructure:"RABBIT_HOST"`
	RabbitPort     string `mapstructure:"RABBIT_PORT"`
	EmailFrom      string `mapstructure:"EMAIL_FROM"`
	SmtpPassword   string `mapstructure:"SMTP_PASSWORD"`
	SmtpPort       int    `mapstructure:"SMTP_PORT"`
	SmtpHost       string `mapstructure:"SMTP_HOST"`
	SmsApiId       string `mapstructure:"SMS_API_ID"`
}

func LoadConfig

func LoadConfig(paths ...string) *Config

Jump to

Keyboard shortcuts

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