config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	*config.Configuration
	WxAppId          string `yaml:"wx.appid"`
	WxAppSecret      string `yaml:"wx.appsecret"`
	WxToken          string `yaml:"wx.token"`
	WxEncodingAesKey string `yaml:"wx.encoding_aes_key"`
	WxStorage        string `yaml:"wx.storage"`
	WxDebug          string `yaml:"wx.debug"`
}

func (Configuration) GetWxAppId

func (c Configuration) GetWxAppId() string

func (Configuration) GetWxAppSecret

func (c Configuration) GetWxAppSecret() string

func (Configuration) GetWxDebug

func (c Configuration) GetWxDebug() bool

func (Configuration) GetWxEncodingAesKey

func (c Configuration) GetWxEncodingAesKey() string

func (Configuration) GetWxStorage

func (c Configuration) GetWxStorage() string

func (Configuration) GetWxToken

func (c Configuration) GetWxToken() string

type ConfigurationReadOnly

type ConfigurationReadOnly interface {
	config.ConfigurationReadOnly
	GetWxAppId() string
	GetWxAppSecret() string
	GetWxToken() string
	GetWxEncodingAesKey() string
	GetWxStorage() string
	GetWxDebug() bool
}
var Cfg ConfigurationReadOnly = covertConfiguration()

Jump to

Keyboard shortcuts

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