config

package
v0.0.0-...-5ec782d Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env(key string, defaultValue string) string

func EnvBool

func EnvBool(key string, defaultValue bool) bool

func EnvInt

func EnvInt(key string, defaultValue int) int

Types

type AppConfig

type AppConfig struct {
	Env        string
	Name       string
	Port       string
	Prefix     string
	LogLevel   string
	ShowBanner bool
	Connection int
}

func NewAppConfig

func NewAppConfig() *AppConfig

type DatabaseConfig

type DatabaseConfig struct {
	Dialect         string
	Connection      string
	LogMode         bool
	IdleConnections int
	OpenConnections int
}

func NewDatabaseConfig

func NewDatabaseConfig() *DatabaseConfig

type MailConfig

type MailConfig struct {
	Host     string
	Port     string
	Name     string
	From     string
	Username string
	Password string
}

func NewMailConfig

func NewMailConfig() *MailConfig

Jump to

Keyboard shortcuts

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