inital

package
v0.0.0-...-11834cf Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VP  *viper.Viper
	CFG Conf
	GDB *gorm.DB
)

Functions

func CreateTables

func CreateTables(db *gorm.DB)

func InitDB

func InitDB() *gorm.DB

func InitViper

func InitViper() (config *viper.Viper)

Types

type Conf

type Conf struct {
	Username  string  `yaml:"username"`
	Password  string  `yaml:"password"`
	DBName    string  `yaml:"dbName"`
	Host      string  `yaml:"host"`
	AppId     string  `yaml:"appId"`
	AppSecret string  `yaml:"appSecret"`
	Tencent   Tencent `yaml:"tencent"`
}

type Tencent

type Tencent struct {
	SecretId  string `json:"secretId"`
	SecretKey string `json:"secretKey"`
}

Jump to

Keyboard shortcuts

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