bindings

package
v0.0.0-...-b1f2603 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUsernameEmpty = errors.New("username cannot be empty")
	ErrPasswordEmpty = errors.New("password cannot be empty")
)
View Source
var ErrNotValidatable = errors.New("Type is not validatable")

Functions

This section is empty.

Types

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

func (LoginRequest) Validate

func (lr LoginRequest) Validate() error

type RequestErrors

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

func (*RequestErrors) Append

func (re *RequestErrors) Append(err error)

func (*RequestErrors) Error

func (re *RequestErrors) Error() string

func (*RequestErrors) Len

func (re *RequestErrors) Len() int

type Validatable

type Validatable interface {
	Validate() error
}

type Validator

type Validator struct{}

func (*Validator) Validate

func (v *Validator) Validate(i interface{}) error

Jump to

Keyboard shortcuts

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