validation

package
v0.0.0-...-be0919c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldError

type FieldError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type FieldErrorList

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

func (*FieldErrorList) AddError

func (fel *FieldErrorList) AddError(code string, message string)

func (FieldErrorList) MarshalJSON

func (fel FieldErrorList) MarshalJSON() ([]byte, error)

type FieldErrorMap

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

func NewErrorMap

func NewErrorMap() *FieldErrorMap

func (*FieldErrorMap) ForField

func (fem *FieldErrorMap) ForField(key string) *FieldErrorList

func (*FieldErrorMap) HasErrors

func (fem *FieldErrorMap) HasErrors() bool

func (FieldErrorMap) MarshalJSON

func (fem FieldErrorMap) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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