bootconfig

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: AGPL-3.0 Imports: 5 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bindata          bool
	HTTPCacheMaxAge  = com.GetenvDuration(`NGING_HTTPCACHE_MAXAGE`, time.Hour*24*7)
	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())

OnStart OnWebStart的别名函数。注册Web(管理面板)开始启动时执行的函数

func OnWebStart added in v0.9.28

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

OnWebStart 注册Web(管理面板)开始启动时执行的函数

func SetServerType

func SetServerType(typ string)

func WebStart added in v0.9.28

func WebStart()

WebStart Web(管理面板)开始启动

Types

This section is empty.

Jump to

Keyboard shortcuts

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