setting

package
v0.0.0-...-6899a59 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 6

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 NewLogService

func NewLogService()

NewLogService Init clog service

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