Documentation ¶
Index ¶
Constants ¶
View Source
const ( PermissionDenied = ErrorCode(codes.PermissionDenied) NotFound = ErrorCode(codes.NotFound) InvalidArgument = ErrorCode(codes.InvalidArgument) Internal = ErrorCode(codes.Internal) Unauthenticated = ErrorCode(codes.Unauthenticated) )
Variables ¶
View Source
var HttpMapper = map[ErrorCode]int{ PermissionDenied: http.StatusForbidden, NotFound: http.StatusNotFound, InvalidArgument: http.StatusBadRequest, Internal: http.StatusInternalServerError, Unauthenticated: http.StatusUnauthorized, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.