config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "0.0.1"

Variables

This section is empty.

Functions

func CloseDB

func CloseDB() (err error)

func InitApi

func InitApi(vip *viper.Viper)

func InitDB

func InitDB(vip *viper.Viper) (err error)

func InitLog

func InitLog(level string) (err error)

Types

type ApiConfig

type ApiConfig struct {
	PlusApi      string
	PlusApiToken string
}
var ApiCon *ApiConfig

type DataBasePool

type DataBasePool struct {
	AM *gorm.DB
}
var (
	Dbpool DataBasePool
)

func Con

func Con() DataBasePool

Jump to

Keyboard shortcuts

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