conf

package module
v0.0.0-...-1b2ce7f Latest Latest
Warning

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

Go to latest
Published: Feb 28, 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"`
	DingdingAppKey    string `yaml:"app-key"`
	DingdingAppSecret string `yaml:"app-secret"`
	DingdingAgentId   int    `yaml:"agent-id"`
	HttpServerListen  string `yaml:"http-server-listen"`
	BaseUrlPath       string `yaml:"base-url-path"`
	SecurityPrefix    string `yaml:"security-prefix"`
}
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