hydrators

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedHydratorType = errors.New("hydrator type unsupported")
)

Functions

This section is empty.

Types

type Hydrator

type Hydrator interface {
	Execute(heimdall.Context, *subject.Subject) error
	WithConfig(config map[string]any) (Hydrator, error)
}

func CreateHydratorPrototype

func CreateHydratorPrototype(id string, typ config.PipelineObjectType, config map[string]any) (Hydrator, error)

type HydratorTypeFactory

type HydratorTypeFactory func(id string, t config.PipelineObjectType, c map[string]any) (bool, Hydrator, error)

Jump to

Keyboard shortcuts

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