config

package
v0.0.0-...-a9119a5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION = "0.0.1"
)

change log:

Variables

View Source
var RedisConnPool *redis.Pool

Functions

func CloseDB

func CloseDB() (err error)

func InitDB

func InitDB(loggerlevel bool) (err error)

func InitLog

func InitLog(level string) (err error)

func InitRedisConnPool

func InitRedisConnPool(redisaddr string, idle int)

func PingRedis

func PingRedis(c redis.Conn, t time.Time) error

func RedisGet

func RedisGet(key string) (string, error)

func RedisSet

func RedisSet(key, value string, ex int) error

func SetLogLevel

func SetLogLevel(loggerlevel bool)

Types

type DBPool

type DBPool struct {
	Falcon    *gorm.DB
	Graph     *gorm.DB
	Uic       *gorm.DB
	Dashboard *gorm.DB
	Alarm     *gorm.DB
}

func Con

func Con() DBPool

Jump to

Keyboard shortcuts

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