hook

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessorHook

type ProcessorHook interface {
	Start() error
	Finish() error
	PrepareBatch(metadata *ProcessorHookMetadata, index, batchSize int) error
	CleanUpBatch(metadata *ProcessorHookMetadata, index, batchSize int, batchError error) error
	OverrideBaseFieldValue(metadata *ProcessorHookMetadata, fieldID, originalValue string) (newValue string, err error)
	OverrideFormattedFieldValue(metadata *ProcessorHookMetadata, fieldID, originalValue string) (newValue string, err error)
}

type ProcessorHookMetadata

type ProcessorHookMetadata struct {
	TargetID   string
	TargetType string
	TargetMode string
}

func NewProcessorHookMetadataFromTarget

func NewProcessorHookMetadataFromTarget(target *config.Target) *ProcessorHookMetadata

Jump to

Keyboard shortcuts

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