configure

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dev    = "Dev"
	Test   = "Test"
	Online = "Online"
)

Variables

This section is empty.

Functions

func MustLoadCfg

func MustLoadCfg(path string, config interface{})

Types

type EtcdConf

type EtcdConf struct {
	Hosts string `yaml:"Hosts"`
	User  string `yaml:"User"`
	Pass  string `yaml:"Pass"`
}

func (*EtcdConf) HasEtcd

func (e *EtcdConf) HasEtcd() bool

HasEtcd 是否有 Etcd (目前还没啥用啊,因为目前是写死了支持etcd)

type Jwt

type Jwt struct {
	Secret              string `yaml:"Secret"`
	TokenExpireDuration int    `yaml:"TokenExpireDuration"`
}

Directories

Path Synopsis
cache
db

Jump to

Keyboard shortcuts

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