config

package
v0.0.0-...-ecb1187 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOptions

type AuthOptions struct {
	Keys map[string]string `yaml:"keys"`
}

type BaseOptions

type BaseOptions struct {
	Bind string `yaml:"bind"`
	Node int64  `yaml:"node"`
}

type Config

type Config struct {
	Base   *BaseOptions          `yaml:"base"`
	Logger *driver.LoggerOptions `yaml:"logger"`
	Wechat *WechatOptions        `yaml:"wechat"`
	Auth   *AuthOptions          `yaml:"auth"`
}
var Conf *Config

func NewConfigWithYaml

func NewConfigWithYaml(filePath string) *Config

type WechatOptions

type WechatOptions struct {
	Store string            `yaml:"store"`
	Keys  map[string]string `yaml:"keys"`
}

Jump to

Keyboard shortcuts

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