Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnauthenticated represents unauthenticated error ErrUnauthenticated = status.Error(codes.Unauthenticated, "unauthenticated") // ErrNotFound represents not found error ErrNotFound = status.Error(codes.NotFound, "not found") )
Functions ¶
func CodeFromHTTPStatus ¶
CodeFromHTTPStatus converts corresponding HTTP response status into the gRPC error code. See: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
func ErrorFromRecover ¶
func ErrorFromRecover(err interface{}) error
ErrorFromRecover creates error with stacktrace from recover
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.