config

package
v0.0.0-...-6bb929a Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: BSD-3-Clause Imports: 3 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 Broker

type Broker struct {
	Topic string
}

Broker

type ClientInfo

type ClientInfo struct {
	Endpoint string
}

type Config

type Config struct {
	Client      map[string]*ClientInfo // 注意: map key为小写
	Broker      Broker
	ServiceTags []string
}

Config

func Get

func Get() *Config

Get 获取配置

func NewConfig

func NewConfig(v *viper.Viper) (*Config, error)

NewConfig

Jump to

Keyboard shortcuts

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