Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ValidationFailed = New(1000, http.StatusUnprocessableEntity, codes.InvalidArgument, "validation_failed") Failed = New(1001, http.StatusInternalServerError, codes.Internal, "failed") NotFound = New(1002, http.StatusNotFound, codes.NotFound, "not_found") )
Functions ¶
This section is empty.
Types ¶
type R ¶
type R map[string]interface{}
any is a type alias for interface{}. It is used to store any type of data.
type RC ¶
type RC struct { // Code is the code of the error. Code uint64 // Message is the message of the error. Message string // HttpCode is the status code of the error. HttpCode int // RpcCode is the rpc status code of the error. RpcCode codes.Code // Data is the data of the error. Data any // contains filtered or unexported fields }
RC is a struct that contains the code, message, http status, and translateable. Code is the code of the error.
func (*RC) OriginalError ¶
Click to show internal directories.
Click to hide internal directories.