Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
func ErrCreatingUser ¶
func ErrCreatingUser() APIError
func ErrDeletingUser ¶
func ErrDeletingUser() APIError
func ErrGettingUser ¶
func ErrGettingUser() APIError
func ErrGettingUsers ¶
func ErrGettingUsers() APIError
func ErrInvalidUUID ¶
func ErrInvalidUUID() APIError
func ErrNameRequired ¶
func ErrNameRequired() APIError
func ErrParsingParams ¶
func ErrParsingParams() APIError
func ErrUpdatingUser ¶
func ErrUpdatingUser() APIError
type APISuccessData ¶
type APISuccessData struct { Status int `json:"-"` Data interface{} `json:"-"` }
func SuccessCreateUser ¶
func SuccessCreateUser(user *models.User) APISuccessData
func SuccessGetUser ¶
func SuccessGetUser(user *models.User) APISuccessData
func SuccessGetUsers ¶
func SuccessGetUsers(users []*models.User) APISuccessData
func SuccessUpdateUser ¶
func SuccessUpdateUser(user *models.User) APISuccessData
func (APISuccessData) Error ¶
func (e APISuccessData) Error() string
type APISuccessResponse ¶
func SuccessDeleteUser ¶
func SuccessDeleteUser(uuid uuid.UUID) APISuccessResponse
func (APISuccessResponse) Error ¶
func (e APISuccessResponse) Error() string
Click to show internal directories.
Click to hide internal directories.