Documentation ¶
Index ¶
- Variables
- func NewConfigClient(config *Config) (config_client.IConfigClient, error)
- func NewConfigClients(configs Configs) (map[string]config_client.IConfigClient, error)
- func NewRegistryClient(config *Config) (naming_client.INamingClient, error)
- func NewRegistryClients(configs Configs) (map[string]naming_client.INamingClient, error)
- type Config
- type Configs
Constants ¶
This section is empty.
Variables ¶
View Source
var Provider = wire.NewSet( NewConfigClients, NewRegistryClients, )
Functions ¶
func NewConfigClient ¶
func NewConfigClient(config *Config) (config_client.IConfigClient, error)
func NewConfigClients ¶
func NewConfigClients(configs Configs) (map[string]config_client.IConfigClient, error)
func NewRegistryClient ¶
func NewRegistryClient(config *Config) (naming_client.INamingClient, error)
func NewRegistryClients ¶
func NewRegistryClients(configs Configs) (map[string]naming_client.INamingClient, error)
Types ¶
type Config ¶
type Config struct { Address string `mapstructure:"address" json:"address" yaml:"address"` Port uint64 `mapstructure:"port" json:"port" yaml:"port"` DataID string `mapstructure:"data_id" json:"data_id" yaml:"data_id"` Group string `mapstructure:"group" json:"group" yaml:"group"` Namespace string `mapstructure:"namespace" json:"namespace" yaml:"namespace"` }
Click to show internal directories.
Click to hide internal directories.