config

package
v0.0.0-...-9c342c4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BinaryName string
	Version    string
	GitCommit  string
)

Functions

func CloseDB

func CloseDB() (err error)

func InitDB

func InitDB(loggerlevel bool, vip *viper.Viper) (err error)

func InitLog

func InitLog(level string) (err error)

func SetLogLevel

func SetLogLevel(loggerlevel bool)

func VersionMsg

func VersionMsg() string

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