Documentation ¶
Index ¶
- Constants
- func AppName() string
- func Contains(key string) bool
- func Find(cfgName string) any
- func GlobalContext(appName string)
- func IntValue(cfgName string) int
- func Key(key string, value interface{})
- func LeaveEventsObserver(name string)
- func ListenEvents(name string, observer ZeroGlobalEventsObserver)
- func Logger() *log.ZeroLogger
- func Pop(key string)
- func Run(appName string, initiators ...ZeroGlobalInitiator)
- func RunServer()
- func RunTest(appName, cfgpath string)
- func ServerAbsPath() string
- func SliceStringValue(cfgName string) []string
- func StringMap(cfgName string) map[string]any
- func StringMapString(cfgName string) map[string]string
- func StringMapStringSlice(cfgName string) map[string][]string
- func StringValue(cfgName string) string
- func Value(key string) interface{}
- type ZeroGlobalEventsObserver
- type ZeroGlobalInitiator
Constants ¶
View Source
const ZERO_FRAMEWORK_BANNER = `` /* 1328-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func GlobalContext ¶ added in v1.10.0
func GlobalContext(appName string)
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 Run ¶ added in v1.10.0
func Run(appName string, initiators ...ZeroGlobalInitiator)
func ServerAbsPath ¶
func ServerAbsPath() string
func SliceStringValue ¶
func StringMapString ¶ added in v1.14.16
func StringMapStringSlice ¶ added in v1.14.16
func StringValue ¶
Types ¶
type ZeroGlobalEventsObserver ¶ added in v1.10.0
type ZeroGlobalEventsObserver interface {
Shutdown() error
}
type ZeroGlobalInitiator ¶ added in v1.10.0
type ZeroGlobalInitiator func()
Click to show internal directories.
Click to hide internal directories.