validator

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyValidator

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

func (*BodyValidator) UnmarshalJSON

func (m *BodyValidator) UnmarshalJSON(b []byte) error

func (BodyValidator) Validate

func (v BodyValidator) Validate(data []byte) (pass []string, fail []string)

type HeaderValidator

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

func (*HeaderValidator) UnmarshalJSON

func (m *HeaderValidator) UnmarshalJSON(data []byte) (err error)

func (HeaderValidator) Validate

func (v HeaderValidator) Validate(headers http.Header) (pass []string, fail []string)

type StatusCodeValidator

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

func (*StatusCodeValidator) UnmarshalJSON

func (m *StatusCodeValidator) UnmarshalJSON(data []byte) (err error)

func (StatusCodeValidator) Validate

func (v StatusCodeValidator) Validate(code int) ([]string, []string)

Jump to

Keyboard shortcuts

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