validator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultFilename is the default filename for the file with the rules of validation
	DefaultFilename = "/data/validation/rules.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator interface {
	Validate(store.Reader, *cs.Segment) error
}

Validator defines the interface with single Validate() method

func NewRootValidator

func NewRootValidator(filename string, validByDefault bool) Validator

NewRootValidator creates a validator from JSON schema filename

Jump to

Keyboard shortcuts

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