Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorMap = new(sync.Map) // base error OK = New(0, "SUCCESS") RequestErr = New(10400, "Request Error") InvalidSignErr = New(10401, "Invalid Sign") InvalidAppidErr = New(10402, "Invalid Appid") InvalidTokenErr = New(10403, "Invalid Token") NothingFound = New(10404, "Nothing Found") ServerErr = New(10500, "Server Error") )
Functions ¶
This section is empty.
Types ¶
type Codes ¶
type Codes 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 }
Codes eno error interface which has a code & message.
Click to show internal directories.
Click to hide internal directories.