setting

package
v0.0.0-...-f6e951e Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//App settings
	AppVer  string
	AppName string
	AppURL  string
	AppPath string
	AppAddr string
	AppPort string

	//Global setting objects
	Cfg       *ini.File
	DebugMode bool
	IsWindows bool
	ConfFile  string

	// Database settings
	UseSQLite3    bool
	UseMySQL      bool
	UsePostgreSQL bool
	UseMSSQL      bool

	// Log settings
	LogRootPath string
	LogModes    []string
	LogConfigs  []interface{}

	//Security settings
	InstallLock bool // true mean installed

	// OAuth2
	SessionExpires time.Duration
)

Functions

func NewContext

func NewContext()

NewContext initializes configuration context. NOTE: do not print any log except error.

func NewServices

func NewServices()

NewServices .

func WorkDir

func WorkDir() (string, error)

WorkDir returns absolute path of work directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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