Documentation ¶
Index ¶
- Constants
- 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
- type HookMethodEndPointHandler
- type HookRegistrationConfig
- type MethodEndPointHandler
- type MethodGlobalInitHandler
- type MethodOwnHandlerGenerator
- type MethodServerInitHandler
- type ModuleConfig
- type RegistrationConfig
Constants ¶
View Source
const (
HookStartEvent = "START"
)
View Source
const (
StarKey = "StarKey"
)
Variables ¶
This section is empty.
Functions ¶
func FireAction ¶
func FireAction(action *dvmeta.DvAction, request *dvmeta.RequestContext) bool
func FireHookEvent ¶
func FireStartHookEvent ¶
func FireStartHookEvent(data []interface{}) error
func IsCorrectHash ¶
func MakeModuleHandler ¶
func MakeModuleHandler(config *RegistrationConfig, params []string) dvmeta.HandlerFunc
func RegisterActionProcessor ¶
func RegisterActionProcessor(name string, proc ActionEndPointHandler, silent bool) bool
func RegisterEndPointActions ¶
func RegisterEndPointActions(actions []dvmeta.DvAction) dvmeta.HandlerFunc
func RegisterEndPointHandlers ¶
func RegisterEndPointHandlers(configs []ModuleConfig) dvmeta.HandlerFunc
func RegisterModule ¶
func RegisterModule(config *RegistrationConfig, silent bool) bool
func SubscribeForEvents ¶
func SubscribeForEvents(config *HookRegistrationConfig, silent bool) bool
Types ¶
type ActionEndPointHandler ¶
type ActionEndPointHandler func(request *dvmeta.RequestContext) bool
type HookRegistrationConfig ¶
type HookRegistrationConfig struct { Name string HookEventMapper map[string]HookMethodEndPointHandler GlobalInitHandler MethodGlobalInitHandler ServerInitHandler MethodServerInitHandler }
func GetRegisteredHookConfig ¶
func GetRegisteredHookConfig(name string, silent bool) *HookRegistrationConfig
type MethodEndPointHandler ¶
type MethodEndPointHandler func(request *dvmeta.RequestContext) bool
type MethodGlobalInitHandler ¶
type MethodServerInitHandler ¶
type ModuleConfig ¶
type RegistrationConfig ¶
type RegistrationConfig struct { Name string EndPointHandler MethodEndPointHandler GlobalInitHandler MethodGlobalInitHandler ServerInitHandler MethodServerInitHandler GenerateHandlers MethodOwnHandlerGenerator }
func GetRegisteredConfig ¶
func GetRegisteredConfig(name string, silent bool) *RegistrationConfig
Click to show internal directories.
Click to hide internal directories.