package
0.0.0-20240815091139-c485ee5aa061
Repository: https://github.com/fizzse/gobase.git
Documentation: pkg.go.dev

# Functions

BadRequest new BadRequest error that is mapped to a 400 response.
ClientClosed new ClientClosed error that is mapped to a HTTP 499 response.
Code returns the http code for a error.
Conflict new Conflict error that is mapped to a 409 response.
Errorf returns an error object for the code, message and error info.
Forbidden new Forbidden error that is mapped to a 403 response.
FromError try to convert an error to *Error.
GatewayTimeout new GatewayTimeout error that is mapped to a HTTP 504 response.
GRPCCodeFromStatus converts a HTTP error code into the corresponding gRPC response status.
InternalServer new InternalServer error that is mapped to a 500 response.
IsBadRequest determines if err is an error which indicates a BadRequest error.
IsClientClosed determines if err is an error which indicates a IsClientClosed error.
IsConflict determines if err is an error which indicates a Conflict error.
IsForbidden determines if err is an error which indicates a Forbidden error.
IsGatewayTimeout determines if err is an error which indicates a GatewayTimeout error.
IsInternalServer determines if err is an error which indicates an Internal error.
IsNotFound determines if err is an error which indicates an NotFound error.
IsServiceUnavailable determines if err is an error which indicates a Unavailable error.
IsUnauthorized determines if err is an error which indicates a Unauthorized error.
No description provided by the author
New returns an error object for the code, message.
Newf New(code fmt.Sprintf(format, a...)).
NotFound new NotFound error that is mapped to a 404 response.
Reason returns the reason for a particular error.
ServiceUnavailable new ServiceUnavailable error that is mapped to a HTTP 503 response.
StatusFromGRPCCode converts a gRPC error code into the corresponding HTTP response status.
Unauthorized new Unauthorized error that is mapped to a 401 response.

# Constants

No description provided by the author
SupportPackageIsVersion1 this constant should not be referenced by any other code.
UnknownCode is unknown code for error info.
UnknownReason is unknown reason for error info.

# Structs

No description provided by the author