global

package
v1.13.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ZERO_FRAMEWORK_BANNER = `` /* 1327-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 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 ServerAbsPath

func ServerAbsPath() string

func SliceStringValue

func SliceStringValue(cfgName 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