modules

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 10 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
	// 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.

func NewBuilder

func NewBuilder() Builder

NewBuilder returns a new module builder.

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

Directories

Path Synopsis
prebid

Jump to

Keyboard shortcuts

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