Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { // Build initializes existing hook modules passing them config and other dependencies. // It returns hook repository created based on the implemented hook interfaces by modules // and a map of modules to a list of stage names for which module provides hooks // or an error encountered during module initialization. Build(cfg config.Modules, client moduledeps.ModuleDeps) (hooks.HookRepository, map[string][]string, error) }
Builder is the interfaces intended for building modules implementing hook interfaces github.com/prebid/prebid-server/hooks/hookstage.
type ModuleBuilderFn ¶
type ModuleBuilderFn func(cfg json.RawMessage, deps moduledeps.ModuleDeps) (interface{}, error)
ModuleBuilderFn returns an interface{} type that implements certain hook interfaces.
type ModuleBuilders ¶
type ModuleBuilders map[string]map[string]ModuleBuilderFn
ModuleBuilders mapping between module name and its builder: map[vendor]map[module]ModuleBuilderFn
Click to show internal directories.
Click to hide internal directories.