validator

package
v0.0.0-...-da4b68f Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachingValidator

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

func (*CachingValidator) SaveCache

func (v *CachingValidator) SaveCache()

func (*CachingValidator) Validate

func (v *CachingValidator) Validate(schemaUrl string, bodyJson string) (model.ValidationResult, error)

type SimpleValidator

type SimpleValidator struct {
}

func (*SimpleValidator) Validate

func (v *SimpleValidator) Validate(schemaUrl string, bodyJson string) (model.ValidationResult, error)

type Validator

type Validator interface {
	Validate(schemaUrl string, bodyJson string) (model.ValidationResult, error)
}

func NewCachingValidator

func NewCachingValidator(logger *log.Logger, schemaCacheFile string) (Validator, error)

func NewSimpleValidator

func NewSimpleValidator() (Validator, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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