validation

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// TODO
	Err error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type Errors

type Errors struct {
	Errs []error
}

func (*Errors) Error

func (e *Errors) Error() string

func (*Errors) Unwrap

func (e *Errors) Unwrap() error

type ProcessingError

type ProcessingError struct {
	Err error
}

func (*ProcessingError) Error

func (e *ProcessingError) Error() string

func (*ProcessingError) Unwrap

func (e *ProcessingError) Unwrap() error

type Schema

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

func NewSchema

func NewSchema(schema string) (*Schema, error)

func (*Schema) Schema

func (s *Schema) Schema() string

func (*Schema) Validate

func (s *Schema) Validate(data interface{}) error

type SchemaProvider

type SchemaProvider interface {
	Schema() string
}

type Validator

type Validator interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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