config

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *clientv3.Client, opts ...Option) (config.Source, error)

New 创建 Etcd 配置源(官方标准接口)

func NewConsulSource added in v0.7.3

func NewConsulSource(c *corev1.Consul) config.Source

NewConsulSource 创建 Consul 配置源

func NewEtcdSource added in v0.7.3

func NewEtcdSource(c *corev1.Etcd) config.Source

NewEtcdSource 创建 Etcd 配置源(兼容旧版本)

func NewNacosSource added in v0.7.3

func NewNacosSource(c *corev1.Nacos) config.Source

NewNacosSource 创建 Nacos 配置源

Types

type Option

type Option func(o *options)

Option is etcd config option.

func WithContext

func WithContext(ctx context.Context) Option

WithContext with registry context.

func WithPath

func WithPath(p string) Option

WithPath is config path

func WithPrefix

func WithPrefix(prefix bool) Option

WithPrefix is config prefix

Jump to

Keyboard shortcuts

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