conf

package module
v0.0.0-...-ede7701 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: GPL-3.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(context []byte) error

Types

type ConfInfo

type ConfInfo struct {
	WorkDir          string `yaml:"work-dir"`
	WechatAppId      string `yaml:"app-id"`
	WechatAppSecret  string `yaml:"app-secret"`
	HttpServerListen string `yaml:"http-server-listen"`
	BaseUrlPath      string `yaml:"base-url-path"`
	SecurityPrefix   string `yaml:"security-prefix"`
	WechatToken      string `yaml:"token"`
	WechatTemplateId string `yaml:"template-id"`
	WechatOpenId     string `yaml:"open-id"`
}
var Config *ConfInfo

func Parser

func Parser(context []byte) (*ConfInfo, error)

Jump to

Keyboard shortcuts

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