internal

package
v0.0.0-...-a1fa394 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Status int    `json:"-"`
	Msg    string `json:"message"`
}

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

func (APIError) Error

func (e APIError) Error() string

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

type APISuccessResponse struct {
	Status int    `json:"-"`
	Msg    string `json:"message"`
}

func SuccessDeleteUser

func SuccessDeleteUser(uuid uuid.UUID) APISuccessResponse

func (APISuccessResponse) Error

func (e APISuccessResponse) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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