Documentation ¶
Index ¶
- Constants
- func AddDynamicAction(action *dvcontext.DvAction, env *dvevaluation.DvObject)
- func AnalyzeAuthToken(ctx *dvcontext.RequestContext) (*dvevaluation.DvVariable, error)
- func DynamicRegisterEndPointActions(actions []*dvcontext.DvAction, isDynamic bool) dvcontext.HandlerFunc
- func FireAction(action *dvcontext.DvAction, request *dvcontext.RequestContext) bool
- func FireHookEvent(eventName string, data []interface{}) error
- func FireStartHookEvent(data []interface{}) error
- func HasAnyRoleOf(ctx *dvcontext.RequestContext, roles []string) bool
- 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) dvcontext.HandlerFunc
- func RegisterActionProcessor(name string, proc ActionEndPointHandler, silent bool) bool
- func RegisterEndPointActions(actions []*dvcontext.DvAction) (dvcontext.HandlerFunc, map[string]*dvurl.UrlPool)
- func RegisterEndPointHandlers(configs []ModuleConfig) dvcontext.HandlerFunc
- func RegisterModule(config *RegistrationConfig, silent bool) bool
- func SubscribeForEvents(config *HookRegistrationConfig, silent bool) bool
- func ValidateRequest(validations []*dvcontext.ValidatePattern, environment *dvevaluation.DvObject) string
- 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 AddDynamicAction ¶ added in v1.0.2
func AddDynamicAction(action *dvcontext.DvAction, env *dvevaluation.DvObject)
func AnalyzeAuthToken ¶ added in v1.0.2
func AnalyzeAuthToken(ctx *dvcontext.RequestContext) (*dvevaluation.DvVariable, error)
func DynamicRegisterEndPointActions ¶ added in v1.0.2
func DynamicRegisterEndPointActions(actions []*dvcontext.DvAction, isDynamic bool) dvcontext.HandlerFunc
func FireAction ¶
func FireAction(action *dvcontext.DvAction, request *dvcontext.RequestContext) bool
func FireHookEvent ¶
func FireStartHookEvent ¶
func FireStartHookEvent(data []interface{}) error
func HasAnyRoleOf ¶ added in v1.0.2
func HasAnyRoleOf(ctx *dvcontext.RequestContext, roles []string) bool
func IsCorrectHash ¶
func MakeModuleHandler ¶
func MakeModuleHandler(config *RegistrationConfig, params []string) dvcontext.HandlerFunc
func RegisterActionProcessor ¶
func RegisterActionProcessor(name string, proc ActionEndPointHandler, silent bool) bool
func RegisterEndPointActions ¶
func RegisterEndPointHandlers ¶
func RegisterEndPointHandlers(configs []ModuleConfig) dvcontext.HandlerFunc
func RegisterModule ¶
func RegisterModule(config *RegistrationConfig, silent bool) bool
func SubscribeForEvents ¶
func SubscribeForEvents(config *HookRegistrationConfig, silent bool) bool
func ValidateRequest ¶ added in v1.0.2
func ValidateRequest(validations []*dvcontext.ValidatePattern, environment *dvevaluation.DvObject) string
Types ¶
type ActionEndPointHandler ¶
type ActionEndPointHandler func(ctx *dvcontext.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 *dvcontext.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.