package
Version:
v0.1.14
Opens a new window with list of versions in this module.
Published: Apr 15, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
Dev = "Dev"
Test = "Test"
Online = "Online"
)
func MustLoadCfg(path string, config interface{})
type EtcdConf struct {
Hosts string `yaml:"Hosts"`
User string `yaml:"User"`
Pass string `yaml:"Pass"`
}
HasEtcd 是否有 Etcd (目前还没啥用啊,因为目前是写死了支持etcd)
type Jwt struct {
Secret string `yaml:"Secret"`
TokenExpireDuration int `yaml:"TokenExpireDuration"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.