validator

package
v0.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2018 License: Apache-2.0 Imports: 11 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 {
	Hash() *types.Bytes32
	// contains filtered or unexported methods
}

Validator defines a validator that can be identified by a hash

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