Versions in this module Expand all Collapse all v0 v0.2.0 Nov 7, 2026 Changes in this version + const DefaultPollTime + const DefaultTimeout + const EnvNamespace + const EnvPassword + const EnvPort + const EnvServer + const EnvSkip + const EnvUsername + var ErrClosed = errors.New("nacos: client is closed") + func NamespaceFromEnv() string + func ShouldSkip(skipFlag string) bool + func WriteConfigFile(path string, content []byte) error + type Client struct + func NewClient(cfg Config) (*Client, error) + func NewClientWithAPI(cfg Config, api configAPI) (*Client, error) + func (c *Client) Close() error + func (c *Client) Download(ctx context.Context) (string, error) + func (c *Client) Watch(ctx context.Context, onChange func(content []byte) error) error + type Config struct + Address string + DataID string + Group string + NamespaceID string + Password string + PollTime time.Duration + Port uint64 + Scheme string + Timeout time.Duration + Username string + func ConfigDefault() Config + func DefaultConfig() Config + func LoadConfigFromEnvAndMeta(metaPath, namespace string) (Config, error) + func (c *Config) Validate() error + func (c Config) String() string + type Meta struct + DataID string + Group string + PollTime time.Duration + Timeout time.Duration + func LoadMetaFromYAML(path, namespace string) (Meta, error)