Versions in this module Expand all Collapse all v1 v1.0.0 May 16, 2020 Changes in this version + const HookStartEvent + const StarKey + func FireAction(action *dvmeta.DvAction, request *dvmeta.RequestContext) bool + func FireHookEvent(eventName string, data []interface{}) error + func FireStartHookEvent(data []interface{}) error + func IsCorrectHash(s string) bool + func MakeHookGlobalInitialization(moduleInits map[string]map[string]string) + func MakeModuleGlobalInitialization(moduleInits map[string]map[string]string) + func MakeModuleHandler(config *RegistrationConfig, params []string) dvmeta.HandlerFunc + func RegisterActionProcessor(name string, proc ActionEndPointHandler, silent bool) bool + func RegisterEndPointActions(actions []dvmeta.DvAction) dvmeta.HandlerFunc + func RegisterEndPointHandlers(configs []ModuleConfig) dvmeta.HandlerFunc + func RegisterModule(config *RegistrationConfig, silent bool) bool + func SubscribeForEvents(config *HookRegistrationConfig, silent bool) bool + type ActionEndPointHandler func(request *dvmeta.RequestContext) bool + type HookMethodEndPointHandler func(eventName string, data []interface{}) error + type HookRegistrationConfig struct + GlobalInitHandler MethodGlobalInitHandler + HookEventMapper map[string]HookMethodEndPointHandler + Name string + ServerInitHandler MethodServerInitHandler + func GetRegisteredHookConfig(name string, silent bool) *HookRegistrationConfig + type MethodEndPointHandler func(request *dvmeta.RequestContext) bool + type MethodGlobalInitHandler func(map[string]string) error + type MethodOwnHandlerGenerator func(url string, params []string, urlPool *dvurl.UrlPool) error + type MethodServerInitHandler func(params []string) (map[string]string, error) + type ModuleConfig struct + Name string + Params []string + Url string + type RegistrationConfig struct + EndPointHandler MethodEndPointHandler + GenerateHandlers MethodOwnHandlerGenerator + GlobalInitHandler MethodGlobalInitHandler + Name string + ServerInitHandler MethodServerInitHandler + func GetRegisteredConfig(name string, silent bool) *RegistrationConfig