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 ¶
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
}
Click to show internal directories.
Click to hide internal directories.