config

package
v0.0.0-...-e36e409 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool
View Source
var SecretKey string
View Source
var SettingFile string

Functions

This section is empty.

Types

type Config

type Config struct {
	DB     DB
	Wechat Wechat
}
var Instance Config

func (*Config) Load

func (c *Config) Load(path string) (err error)

Init configuration instance

func (*Config) ToYaml

func (c *Config) ToYaml() string

type DB

type DB struct {
	Dialect string
	URL     string
}

type Wechat

type Wechat struct {
	wechatConfig.Wechat
	AuthUrl string
}

Jump to

Keyboard shortcuts

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