config

package
v0.0.0-...-70d48f5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: MIT Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config         *MainConfig
	Root           string
	View           *render.Render
	Mailer         *mailer.Mailer
	SessionManager session.ManagerInterface
	RedirectBack   *redirect_back.RedirectBack
	Middlewares    *middlewares.MiddlewareStack
)

Functions

func Init

func Init(log logging.Interface)

Types

type MainConfig

type MainConfig struct {
	SessionSecret string `env:"SESSIONSecret"`
	CookieSecret  string `env:"COOKIESecret"` // dd if=/dev/urandom bs=1 count=64 | base64 -w0
	Locale        string `default:"de-DE"`
	HTTPHost      string `default:":7000"`
	DB            struct {
		Name    string `env:"DBName" default:"ssbpub.db"`
		Adapter string
	}
	SMTP SMTPConfig
}

type SMTPConfig

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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