Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCToHTTP ¶
GRPCToHTTP returns the HTTP code for the given grpc code.
Types ¶
type Code ¶
type Code int
const ( Aborted Code // aborted BadRequest // bad_request Canceled // canceled Conflict // conflict DataLoss // data_loss DeadlineExceeded // deadline_exceeded Exists // exists Forbidden // forbidden Internal // internal NotFound // not_found NotImplemented // not_implemented OutOfRange // out_of_range PreconditionFailed // precondition_failed TooManyRequests // too_many_requests Unknown // unknown )
Click to show internal directories.
Click to hide internal directories.