settings

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME = "staffio"
)

Variables

View Source
var (
	EmailDomain string

	SMTP struct {
		Host           string
		Port           int
		SenderName     string
		SenderEmail    string
		SenderPassword string
	}

	LDAP struct {
		Hosts    string
		Base     string
		BindDN   string
		Password string
		Filter   string
	}

	Session struct {
		Name   string
		Domain string
		Secret string
		MaxAge int // cookie maxAge
	}

	HttpListen   string
	BaseURL      string
	PwdSecret    string
	Backend      struct{ DSN string }
	SentryDSN    string
	Root         string
	FS           string
	CommonFormat string
	Debug        bool
	UserLifetime int // secends, user online time

	TokenGen struct {
		Method string // disuse
		Key    string
	}

	CacheSize     int
	CacheLifetime uint
)

Functions

func IsDevelop added in v0.6.5

func IsDevelop() bool

func Parse added in v0.6.5

func Parse()

func Version added in v0.6.5

func Version() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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