Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type XCode ¶
type XCode int
const ( OK XCode = 0 Canceled XCode = 1 Unknown XCode = 2 InvalidArgument XCode = 3 DeadlineExceeded XCode = 4 NotFound XCode = 5 AlreadyExists XCode = 6 PermissionDenied XCode = 7 ResourceExhausted XCode = 8 FailedPrecondition XCode = 9 Aborted XCode = 10 OutOfRange XCode = 11 Unimplemented XCode = 12 Internal XCode = 13 DataLoss XCode = 15 Unauthenticated XCode = 16 )
type XError ¶
type XError struct { Code XCode `json:"code"` Message string `json:"message"` Where string `json:"where"` }
func (*XError) GRPCStatus ¶
type XStatus ¶
statusError is an alias of a status proto. It implements error and Status, and a nil statusError should never be returned by this package.
func (*XStatus) GRPCStatus ¶
Click to show internal directories.
Click to hide internal directories.