config

package
v0.0.0-...-96c7ced Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EncryptKey        = "LKHlhb899Y09olUi321431ew"
	TOKEN_EXPIRE_TIME = 7 * 86400 // 七天有效
)

Variables

This section is empty.

Functions

func IniConfig

func IniConfig() error

Types

type ConfStruct

type ConfStruct struct {
	Port       int    `yaml:"port"`
	EncryptKey string `yaml:"encryptKey"`
	DB         struct {
		Host     string `yaml:"host"`
		Port     uint   `yaml:"port"`
		User     string `yaml:"user"`
		Name     string `yaml:"name"`
		Password string `yaml:"password"`
		Prefix   string `yaml:"prefix"`
	} `yaml:"db"`
}
var Conf ConfStruct

Jump to

Keyboard shortcuts

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