Documentation ¶
Overview ¶
Package codes provide codes list
Index ¶
Constants ¶
View Source
const ( OK uint32 = 0 Canceled uint32 = 10001 Unknown uint32 = 10002 InvalidArgument uint32 = 10003 DeadlineExceeded uint32 = 10004 NotFound uint32 = 10005 AlreadyExists uint32 = 10006 PermissionDenied uint32 = 10007 ResourceExhausted uint32 = 10008 Aborted uint32 = 10010 Unimplemented uint32 = 10012 Internal uint32 = 10013 Unauthenticated uint32 = 10016 ConfigurationError uint32 = 10101 DBError uint32 = 10102 ContentIllegal uint32 = 10201 ImageIllegal uint32 = 10202 VideoIllegal uint32 = 10203 )
Code define
Variables ¶
This section is empty.
Functions ¶
func CodeToGRPC ¶
CodeToGRPC convert int codes to codes.Code
func GRPCToCode ¶
GRPCToCode convert grpc codes to int codes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.