Documentation ¶
Index ¶
Constants ¶
View Source
const ( EncryptKey = "LKHlhb899Y09olUi321431ew" TOKEN_EXPIRE_TIME = 7 * 86400 // 七天有效 )
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.