validation

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() error

Register registers custom DNS validation handlers with the validator

Types

type ErrorResponse

type ErrorResponse struct {
	FailedField string
	Tag         string
	Value       string
}

ErrorResponse stores a validation error to be returned as a HTTP response

func Validate

func Validate(s interface{}) []*ErrorResponse

Validate runs a validation and returns a list of errors

Jump to

Keyboard shortcuts

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