config

package
v0.0.0-...-a593cc9 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Root   = os.Getenv("GOPATH") + "/src/github.com/sunwukonga/paypal-qor-admin"
	SGT, _ = time.LoadLocation("Asia/Singapore")
	View   *render.Render
)
View Source
var Config = struct {
	Port uint   `default:"80" env:"PORT"`
	Host string `default:"172.31.19.190" env:"HOST"`
	DB   struct {
		Name     string `default:"qor_example"`
		Host     string `default:"localhost"`
		Port     string `default:"3306"`
		Adapter  string `default:"mysql"`
		User     string
		Password string
	}
	SMTP SMTPConfig
}{}

Functions

This section is empty.

Types

type SMTPConfig

type SMTPConfig struct {
	Host     string
	Port     string
	User     string
	Password string
	Site     string
}

func (SMTPConfig) HostWithPort

func (s SMTPConfig) HostWithPort() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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