conf

package module
v0.0.0-...-45b3572 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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"`
	WechatCorpId         string `yaml:"corp-id"`
	WechatCorpSecret     string `yaml:"corp-secret"`
	WechatAgentId        int    `yaml:"agent-id"`
	HttpServerListen     string `yaml:"http-server-listen"`
	BaseUrlPath          string `yaml:"base-url-path"`
	SecurityPrefix       string `yaml:"security-prefix"`
	WechatToken          string `yaml:"token"`
	WechatEnCodingAesKey string `yaml:"encoding-aeskey"`
}
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