configCenter

package
v0.0.0-...-ba87f1b Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT 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 NewConsulConfigSource

func NewConsulConfigSource(c *conf.ConsulConfig) config.Source

NewConsulConfigSource 创建 Consul 配置源

func NewEtcdConfigSource

func NewEtcdConfigSource(c *conf.EtcdConfig) config.Source

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

func NewNacosConfigSource

func NewNacosConfigSource(c *conf.NacosConfig) config.Source

NewNacosConfigSource 创建 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