bootconfig

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: AGPL-3.0 Imports: 6 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bindata          bool
	StaticMW         interface{}
	HTTPCacheMaxAge  = com.GetenvDuration(`NGING_HTTPCACHE_MAXAGE`, time.Hour*24*7)
	BackendTmplMgr   driver.Manager
	FrontendTmplMgr  driver.Manager
	LangFSFunc       func(dir string) http.FileSystem
	Develop          bool
	SupportManager   bool
	MustLicensed     bool //是否必须被许可才能运行(如为true,则未许可的情况下会强制退出程序,否则不会退出程序) Must be licensed before starting
	FaviconHandler   func(echo.Context) error
	FaviconPath      = "public/assets/backend/images/favicon-xs.ico"
	SoftwareName     = `Nging` // 软件英文名(也作为软件二进制可执行文件的名称)
	SoftwareTitle    = `Nging` // 软件标题(显示在网页上的软件名称)
	OfficialHomepage = `https://github.com/admpub/nging`
	Policy           func() echo.KVList
	Setup            = func(echo.Context) error { return echo.ErrNotImplemented }
	Upgrade          = func() error { return nil }

	// Short 简述
	Short = `Nging is a web and network service management system`
	// Long 长述
	Long string
	// Welcome 欢迎语
	Welcome             = "Thank you for choosing nging %s, I hope you enjoy using it.\nToday is %s."
	AutoUpgradeDBStruct = true
)

Functions

func IsServerType

func IsServerType(typ string) bool

func IsWeb

func IsWeb() bool

func OnStart

func OnStart(index int, fn ...func())

func SetServerType

func SetServerType(typ string)

func Start

func Start()

Types

This section is empty.

Jump to

Keyboard shortcuts

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