Documentation ¶
Index ¶
- Constants
- Variables
- func CloseDB() (err error)
- func InitDB(loggerlevel bool) (err error)
- func InitLog(level string) (err error)
- func InitRedisConnPool(redisaddr string, idle int)
- func PingRedis(c redis.Conn, t time.Time) error
- func RedisGet(key string) (string, error)
- func RedisSet(key, value string, ex int) error
- func SetLogLevel(loggerlevel bool)
- type DBPool
Constants ¶
View Source
const (
VERSION = "0.0.1"
)
change log:
Variables ¶
View Source
var RedisConnPool *redis.Pool
Functions ¶
func InitRedisConnPool ¶
func SetLogLevel ¶
func SetLogLevel(loggerlevel bool)
Types ¶
Click to show internal directories.
Click to hide internal directories.