conf

package
v0.0.0-...-35d01cd Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C config

Functions

func LoadDefaultConfig

func LoadDefaultConfig()

Types

type DB

type DB struct {
	DbType db.DbType `mapstructure:"type"` // 1: sqlite3, 2: mysql
	Data   string    `toml:"data"`         // 打开数据库所需的字符串信息
}

type JWT

type JWT struct {
	Secret string `toml:"secret"` // jwt 加密密钥
}

type Server

type Server struct {
	Addr   string `toml:"addr"`   // 后端运行地址
	Domain string `toml:"domain"` // 指定 swagger 的 base url
	Mode   string `toml:"mode"`   // 运行模式
}

type User

type User struct {
	LisenInterval int // 监听动态的时间间隔
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳