Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrGrpcRoleNotFound = response.NewGrpcError("error", "Role not found", int(codes.NotFound)) ErrGrpcRoleInvalidId = response.NewGrpcError("error", "Invalid Role ID", int(codes.NotFound)) ErrGrpcFailedFindAll = response.NewGrpcError("error", "Failed to fetch Roles", int(codes.Internal)) ErrGrpcFailedFindActive = response.NewGrpcError("error", "Failed to fetch active Roles", int(codes.Internal)) ErrGrpcFailedFindTrashed = response.NewGrpcError("error", "Failed to fetch trashed Roles", int(codes.Internal)) ErrGrpcFailedCreateRole = response.NewGrpcError("error", "Failed to create Role", int(codes.Internal)) ErrGrpcFailedUpdateRole = response.NewGrpcError("error", "Failed to update Role", int(codes.Internal)) ErrGrpcValidateCreateRole = response.NewGrpcError("error", "validation failed: invalid create Role request", int(codes.InvalidArgument)) ErrGrpcValidateUpdateRole = response.NewGrpcError("error", "validation failed: invalid update Role request", int(codes.InvalidArgument)) ErrGrpcFailedTrashedRole = response.NewGrpcError("error", "Failed to move Role to trash", int(codes.Internal)) ErrGrpcFailedRestoreRole = response.NewGrpcError("error", "Failed to restore Role", int(codes.Internal)) ErrGrpcFailedDeletePermanent = response.NewGrpcError("error", "Failed to delete Role permanently", int(codes.Internal)) ErrGrpcFailedRestoreAll = response.NewGrpcError("error", "Failed to restore all Roles", int(codes.Internal)) ErrGrpcFailedDeleteAll = response.NewGrpcError("error", "Failed to delete all Roles permanently", int(codes.Internal)) )
var ErrApiBindCreateRole = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid create Role request", http.StatusBadRequest) }
ErrApiBindCreateRole returns an API error response for failed Role creation request binding.
var ErrApiBindUpdateRole = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid update Role request", http.StatusBadRequest) }
ErrApiBindUpdateRole returns an API error response for failed Role update request binding.
var ErrApiFailedCreateRole = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to create Role", http.StatusInternalServerError) }
ErrApiFailedCreateRole returns an API error response when Role creation fails.
var ErrApiFailedDeleteAll = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to delete all Roles permanently", http.StatusInternalServerError) }
ErrApiFailedDeleteAll returns an API error response when permanently deleting all Roles fails.
var ErrApiFailedDeletePermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to delete Role permanently", http.StatusInternalServerError) }
ErrApiFailedDeletePermanent returns an API error response when permanently deleting a Role fails.
var ErrApiFailedFindActive = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to fetch active Roles", http.StatusInternalServerError) }
ErrApiFailedFindActive returns an API error response when fetching active Roles fails.
var ErrApiFailedFindAll = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to fetch Roles", http.StatusInternalServerError) }
ErrApiFailedFindAll returns an API error response when fetching all Roles fails.
var ErrApiFailedFindTrashed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to fetch trashed Roles", http.StatusInternalServerError) }
ErrApiFailedFindTrashed returns an API error response when fetching trashed Roles fails.
var ErrApiFailedRestoreAll = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to restore all Roles", http.StatusInternalServerError) }
ErrApiFailedRestoreAll returns an API error response when restoring all trashed Roles fails.
var ErrApiFailedRestoreRole = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to restore Role", http.StatusInternalServerError) }
ErrApiFailedRestoreRole returns an API error response when restoring a trashed Role fails.
var ErrApiFailedTrashedRole = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to move Role to trash", http.StatusInternalServerError) }
ErrApiFailedTrashedRole returns an API error response when soft-deleting (trashing) a Role fails.
var ErrApiFailedUpdateRole = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "failed to update Role", http.StatusInternalServerError) }
ErrApiFailedUpdateRole returns an API error response when Role update fails.
var ErrApiRoleInvalidId = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "invalid Role id", http.StatusNotFound) }
ErrApiRoleInvalidId returns an API error response for an invalid Role ID.
var ErrApiRoleNotFound = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Role not found", http.StatusNotFound) }
ErrApiRoleNotFound returns an API error response when the requested Role is not found.
var ErrApiValidateCreateRole = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid create Role request", http.StatusBadRequest) }
ErrApiValidateCreateRole returns an API error response for invalid Role creation request validation.
var ErrApiValidateUpdateRole = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update Role request", http.StatusBadRequest) }
ErrApiValidateUpdateRole returns an API error response for invalid Role update request validation.
var ErrCreateRole = errors.New("failed to create Role")
ErrCreateRole is returned when creating a new Role fails.
var ErrDeleteAllRoles = errors.New("failed to permanently delete all Roles")
ErrDeleteAllRoles is returned when permanently deleting all Roles fails.
var ErrDeleteRolePermanent = errors.New("failed to permanently delete Role")
ErrDeleteRolePermanent is returned when permanently deleting a Role fails.
var ErrFailedCreateRole = response.NewErrorResponse("Failed to create Role", http.StatusInternalServerError)
ErrFailedCreateRole is returned when there is a failure in creating a role.
var ErrFailedDeleteAll = response.NewErrorResponse("Failed to delete all Roles permanently", http.StatusInternalServerError)
ErrFailedDeleteAll is returned when there is a failure in permanently deleting all roles.
var ErrFailedDeletePermanent = response.NewErrorResponse("Failed to delete Role permanently", http.StatusInternalServerError)
ErrFailedDeletePermanent is returned when there is a failure in permanently deleting a role.
var ErrFailedFindActive = response.NewErrorResponse("Failed to fetch active Roles", http.StatusInternalServerError)
ErrFailedFindActive is returned when there is a failure in fetching active roles.
var ErrFailedFindAll = response.NewErrorResponse("Failed to fetch Roles", http.StatusInternalServerError)
ErrFailedFindAll is returned when there is a failure in fetching all roles.
var ErrFailedFindTrashed = response.NewErrorResponse("Failed to fetch trashed Roles", http.StatusInternalServerError)
ErrFailedFindTrashed is returned when there is a failure in fetching trashed roles.
var ErrFailedRestoreAll = response.NewErrorResponse("Failed to restore all Roles", http.StatusInternalServerError)
ErrFailedRestoreAll is returned when there is a failure in restoring all trashed roles.
var ErrFailedRestoreRole = response.NewErrorResponse("Failed to restore Role", http.StatusInternalServerError)
ErrFailedRestoreRole is returned when there is a failure in restoring a trashed role.
var ErrFailedTrashedRole = response.NewErrorResponse("Failed to move Role to trash", http.StatusInternalServerError)
ErrFailedTrashedRole is returned when there is a failure in moving a role to trash.
var ErrFailedUpdateRole = response.NewErrorResponse("Failed to update Role", http.StatusInternalServerError)
ErrFailedUpdateRole is returned when there is a failure in updating a role.
var ErrFindActiveRoles = errors.New("failed to find active Roles")
ErrFindActiveRoles is returned when retrieving all active Roles fails.
var ErrFindAllRoles = errors.New("failed to find all Roles")
ErrFindAllRoles is returned when retrieving all Roles from the database fails.
var ErrFindTrashedRoles = errors.New("failed to find trashed Roles")
ErrFindTrashedRoles is returned when retrieving trashed (soft-deleted) Roles fails.
var ErrInvalidRoleId = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "invalid Role id", http.StatusBadRequest) }
ErrInvalidRoleId returns an API error response for an invalid Role ID format.
var ErrRestoreAllRoles = errors.New("failed to restore all Roles")
ErrRestoreAllRoles is returned when restoring all trashed Roles fails.
var ErrRestoreRole = errors.New("failed to restore Role from trash")
ErrRestoreRole is returned when restoring a trashed Role fails.
var ErrRoleConflict = errors.New("failed Role already exists")
ErrRoleConflict indicates a conflict where a Role already exists.
var ErrRoleNotFound = errors.New("role not found")
ErrRoleNotFound indicates that the requested Role was not found in the database.
var ErrRoleNotFoundRes = response.NewErrorResponse("Role not found", http.StatusNotFound)
ErrRoleNotFoundRes is returned when the requested role is not found.
var ErrTrashedRole = errors.New("failed to move Role to trash")
ErrTrashedRole is returned when moving a Role to trash (soft-delete) fails.
var ErrUpdateRole = errors.New("failed to update Role")
ErrUpdateRole is returned when updating an existing Role fails.
Functions ¶
This section is empty.
Types ¶
This section is empty.