conf

package
v0.0.0-...-f839611 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSessionStore

func GetSessionStore() cookie.Store

GetSessionStore 获取Cookie仓库

func Init

func Init()

Init 读取配置文件 会依次到 linux默认路径 > windows默认路径 > local 寻找配置文件,全部没找到时候panic

Types

type Database

type Database struct {
	Dialect string
	Dsn     string
	Debug   bool
}

Database 数据库配置

func GetDatabase

func GetDatabase() *Database

GetDatabase 获取数据库配置

type Gin

type Gin struct {
	Mode string
}

Gin gin配置

func GetGin

func GetGin() *Gin

GetGin 获取gin配置

Jump to

Keyboard shortcuts

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