Documentation
¶
Index ¶
Constants ¶
View Source
const ( Success = 0 Ok = Success ErrCanceled = 1 ErrUnknown = 2 ErrArgument = 3 ErrDeadlineExceeded = 4 ErrNotFound = 5 ErrAlreadyExists = 6 ErrPermissionDenied = 7 ErrResourceExhausted = 8 ErrFailedPrecondition = 9 ErrAborted = 10 ErrOutOfRange = 11 ErrUnimplemented = 12 ErrInternal = 13 ErrDataLoss = 15 ErrUnauthenticated = 16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status struct {
Code uint32 `json:"code" yaml:"code"`
Message string `json:"msg" yaml:"msg"`
Data any `json:"data" yaml:"data"`
Flag uint16 `json:"flag" yaml:"flag"`
}
func JsonUnmarshalStatus ¶
func StatusError ¶
Click to show internal directories.
Click to hide internal directories.