config

package
Version: 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: 3 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 {
	Web    Web
	Wechat Wechat
}

Conf is the root configuration struct

var Instance Config

func (*Config) Load

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

Init configuration instance

type Web

type Web struct {
	Port int
}

Conf is the root configuration struct

type Wechat

type Wechat struct {
	Url       string
	Token     string
	AppId     string
	AppSecret string
	Id        string
	Account   string
}

Conf is the root configuration struct

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL