config

package
v0.0.0-...-1cb6917 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// JWTSecret jwt 32
	JWTSecret string = "DIQxHEGouXErEKKrC6KX1Mo2U7pNNv92"
	// PasswdSecret ... passwd crypto 32
	PasswdSecret string = "mn8Bs0aaxyHUXqWHDE9lPRt7T0JBEHNL"
)
View Source
const ShotURLDomain = "http://127.0.0.1"

ShotURLDomain ... 短链接域名配置

Variables

This section is empty.

Functions

func DB

func DB() (db *gorm.DB, err error)

DB 配置函数

Types

type Addr

type Addr struct {
	Domain   string
	Login    string
	Logout   string
	Home     string
	Register string
}

Addr Addr ...

type Site

type Site struct {
	Addr
}

Site for Site

func SiteConfig

func SiteConfig() *Site

SiteConfig info

Jump to

Keyboard shortcuts

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