Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errors ¶
Errors represents the validation errors that are indexed by struct field names, map or slice keys. values are Error or Errors (for map, slice and array error value is Errors).
func NewValidationErrorMessage ¶
NewValidationErrorMessage create new error.
func (Errors) Filter ¶
Filter removes all nils from Errors and returns back the updated Errors as an error. If the length of Errors becomes 0, it will return nil.
func (Errors) MarshalJSON ¶
MarshalJSON converts the Errors into a valid JSON.
type HttpError ¶
func NewHttpError ¶
NewHttpError create new error.
type User ¶
type User struct { Id uuid.UUID `json:"id"` Email string `json:"email"` Password string `json:"-"` FirstName string `json:"firstName"` LastName string `json:"lastName"` AuthorizationToken *string `json:"authorizationToken,omitempty"` SessionToken *string `json:"-"` }
func (*User) SetAuthorizationToken ¶
Click to show internal directories.
Click to hide internal directories.