nacos

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigSource

func NewConfigSource(client config_client.IConfigClient, opts ...Option) config.Source

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (*Config) Load

func (c *Config) Load() ([]*config.KeyValue, error)

func (*Config) Watch

func (c *Config) Watch() (config.Watcher, error)

type Option

type Option func(*options)

func WithDataID

func WithDataID(dataID string) Option

WithDataID With nacos config data id.

func WithFormat added in v1.0.16

func WithFormat(format string) Option

WithFormat with nacos config format.

func WithGroup

func WithGroup(group string) Option

WithGroup With nacos config group.

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func (*Watcher) Close

func (w *Watcher) Close() error

func (*Watcher) Next

func (w *Watcher) Next() ([]*config.KeyValue, error)

func (*Watcher) Stop

func (w *Watcher) Stop() error

Jump to

Keyboard shortcuts

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