configs

package
v0.0.0-...-2981145 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 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"`
	MysqlConf   string `json:"mysql_conf"`
	AccountGrpc string `json:"account_grpc"`
	RedisConf   string `json:"redis_conf"`
}

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