validator

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 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 Config

type Config struct {
	ValidatorType string    `yaml:"type"`
	Params        yaml.Node `yaml:"params"`
}

type Validator

type Validator interface {
	fmt.Stringer
	Validate(rule rulefmt.Rule) []error
}

func NewFromConfig

func NewFromConfig(config Config) (Validator, error)

Jump to

Keyboard shortcuts

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