Help us shape the future of Go! Take the 2026 Go Developer Survey

validation

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidation = errors.New("validation error")
)

Functions

Types

type ValidateProcessor

type ValidateProcessor struct {
	// contains filtered or unexported fields
}

func NewValidateProcessor

func NewValidateProcessor(parameters *ValidateProcessorParameters) *ValidateProcessor

func (*ValidateProcessor) Run

func (p *ValidateProcessor) Run(taskpoolFactory pool.VirtualPoolFactory, e api.Entry)

type ValidateProcessorParameters

type ValidateProcessorParameters struct {
	// contains filtered or unexported fields
}

func NewValidateProcessorConfig

func NewValidateProcessorConfig(resultChan chan<- *types.ValidationResultEntry, stats *types.ValidationStats, vCfg *config.Validation) *ValidateProcessorParameters

type ValidationFunc

type ValidationFunc func(ctx context.Context, e api.Entry, resultChan chan<- *types.ValidationResultEntry, stats *types.ValidationStats)

ValidationFunc is the common signature for all validation checks.

Jump to

Keyboard shortcuts

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