Documentation ¶
Index ¶
Constants ¶
View Source
const ( RedisNil = "redis: nil" MongoNotFound = "not found" MysqlNoRows = "sql: no rows in result set" RPCRespNil = "rpc: nil" ZSqlErrNilRows = "[scanner]: rows can't be nil" ZSqlErrEmptyResult = `[scanner]: empty result` )
Errors of not found include redis/mongo/mysql
Variables ¶
View Source
var RedisCache rc
View Source
var RedisCounter rCounter
Functions ¶
func ContainInt ¶
ContainInt check if int target in int array
func ContainStr ¶
ContainStr check if string target in string array
func IsNotFound ¶
IsNotFound check if nil in redis/not found in mongo/no rows in mysql If sdk has change error msg, this will return wrong result, rarely
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.