nacos

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 3 Imported by: 0

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.

func (*Config) Init

func (c *Config) Init() *Config

Init is a no-op placeholder for future default initialization.

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.

Jump to

Keyboard shortcuts

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