validation

package
v0.0.0-...-3029327 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePayload

func ValidatePayload(p *Payload) error

Types

type Controller

type Controller struct {
	ValidatePayload func(p *Payload) error
}

func New

func New() *Controller

func (*Controller) Process

func (c *Controller) Process(w http.ResponseWriter, r *http.Request)

type Payload

type Payload struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
}

type Verror

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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