zstorage

package
v0.0.0-...-325af03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func ContainInt(source []int, target int) bool

ContainInt check if int target in int array

func ContainStr

func ContainStr(source []string, target string) bool

ContainStr check if string target in string array

func IsNotFound

func IsNotFound(err error) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL