Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
vo.NacosClientParam
}
func (*Config) AfterInject ¶
func (c *Config) AfterInject()
AfterInject calls Init after config fields are populated.
func (*Config) BeforeInject ¶
func (c *Config) BeforeInject()
BeforeInject is a no-op satisfying the Config interface.
func (*Config) Build ¶
func (c *Config) Build() (config_client.IConfigClient, error)
Build creates a Nacos config client.
type ConfigClient ¶
type ConfigClient struct {
Client config_client.IConfigClient
Conf Config
}
func (*ConfigClient) Close ¶
func (m *ConfigClient) Close() error
Close closes the Nacos config client connection.
func (*ConfigClient) Config ¶
func (m *ConfigClient) Config() any
Config returns the embedded Conf as the configuration for injection.
func (*ConfigClient) Init ¶
func (m *ConfigClient) Init() error
Init creates the Nacos config client and stores it.
Click to show internal directories.
Click to hide internal directories.