configs

package
v0.0.0-...-e505ea4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewConfig)

Functions

This section is empty.

Types

type Config

type Config struct {
	Mode             string `json:"mode"`
	ApmUrl           string `json:"apm_url"`
	MysqlConf        string `json:"mysql_conf"`
	TenSecretId      string `json:"ten_secret_id"`
	TenSecretKey     string `json:"ten_secret_key"`
	TenSmsConf       string `json:"ten_sms_conf"`
	WechatMiniAppid  string `json:"wechat_mini_appid"`
	WechatMiniSecret string `json:"wechat_mini_secret"`
	JwtKey           string `json:"jwt_key"`
	YunpianApiKey    string `json:"yunpian_api_key"`
	RedisOption      string `json:"redis_option"`
	Email            string `json:"email"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Interface

type Interface interface {
	Get() Config
	xconfig.ReloadConfigInterface
}

Interface 对外暴露接口(用于功能扩展)

func NewConfig

func NewConfig(ctx context.Context) Interface

NewConfig 获取配置

Jump to

Keyboard shortcuts

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