Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusOK = 0 StatusError = 1 )
Variables ¶
This section is empty.
Functions ¶
func StatusText ¶ added in v0.0.5
Types ¶
type ErrorCode ¶
type ErrorCode interface { // sometimes Error return Code in string form // NOTE: don't use Error in monitor report even it also work for now Error() string // Code get error code. Code() int // Message get code message. Message() string //Detail get error detail,it may be nil. Details() []interface{} }
Codes ecode error interface which has a code & message.
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) WithDetails ¶
WithDetails WithDetails
Click to show internal directories.
Click to hide internal directories.