global

package
v1.15.16 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ZERO_FRAMEWORK_BANNER = `` /* 1328-byte string literal not displayed */

Variables

This section is empty.

Functions

func AppName

func AppName() string

func Contains added in v1.10.0

func Contains(key string) bool

func Find added in v1.14.16

func Find(cfgName string) any

func GlobalContext added in v1.10.0

func GlobalContext(appName string)

func IntValue

func IntValue(cfgName string) int

func Key

func Key(key string, value interface{})

func LeaveEventsObserver added in v1.10.0

func LeaveEventsObserver(name string)

func ListenEvents added in v1.10.0

func ListenEvents(name string, observer ZeroGlobalEventsObserver)

func Logger

func Logger() *log.ZeroLogger

func Pop

func Pop(key string)

func Run added in v1.10.0

func Run(appName string, initiators ...ZeroGlobalInitiator)

func RunServer

func RunServer()

func RunTest added in v1.14.17

func RunTest(appName, cfgpath string)

func ServerAbsPath

func ServerAbsPath() string

func SliceStringValue

func SliceStringValue(cfgName string) []string

func StringMap added in v1.14.16

func StringMap(cfgName string) map[string]any

func StringMapString added in v1.14.16

func StringMapString(cfgName string) map[string]string

func StringMapStringSlice added in v1.14.16

func StringMapStringSlice(cfgName string) map[string][]string

func StringValue

func StringValue(cfgName string) string

func Value

func Value(key string) interface{}

Types

type ZeroGlobalEventsObserver added in v1.10.0

type ZeroGlobalEventsObserver interface {
	Shutdown() error
}

type ZeroGlobalInitiator added in v1.10.0

type ZeroGlobalInitiator func()

Jump to

Keyboard shortcuts

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