modules

package
v0.234.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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
	// or an error encountered during module initialization.
	Build(cfg config.Modules, client *http.Client) (hooks.HookRepository, error)
}

Builder is the interfaces intended for building modules implementing hook interfaces github.com/prebid/prebid-server/hooks/hookstage.

func NewBuilder

func NewBuilder() Builder

NewBuilder returns a new module builder.

type ModuleBuilderFn

type ModuleBuilderFn func(cfg json.RawMessage, client *http.Client) (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL