engine

package
v0.10.4-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoadHooks = map[string]func(config.Config) error{}

LoadHooks used to load custom widgets/processes

Functions

func Load

func Load(cfg config.Config, options LoadOption) (err error)

Load application engine

func RegisterLoadHook

func RegisterLoadHook(name string, hook func(config.Config) error) error

RegisterLoadHook register custom load hook

func Reload

func Reload(cfg config.Config, options LoadOption) (err error)

Reload the application engine

func Restart added in v0.10.3

func Restart(cfg config.Config, options LoadOption) error

Restart the application engine

func Unload added in v0.10.3

func Unload() (err error)

Unload application engine

Types

type LoadOption

type LoadOption struct {
	Action           string `json:"action"`
	IgnoredAfterLoad bool   `json:"ignoredAfterLoad"`
	IsReload         bool   `json:"reload"`
}

LoadOption the load option

Jump to

Keyboard shortcuts

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