etcd_discovery

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: LGPL-2.1 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Install   = self.Install
	Uninstall = self.Uninstall
)
View Source
var With _Option

Functions

func NewRegistry

func NewRegistry(settings ...option.Setting[RegistryOptions]) discovery.IRegistry

NewRegistry 创建registry插件,可以配合registry cache将数据缓存本地,提高查询效率

Types

type RegistryOptions

type RegistryOptions struct {
	EtcdClient      *clientv3.Client
	EtcdConfig      *clientv3.Config
	KeyPrefix       string
	WatchChanSize   int
	TTL             time.Duration
	AutoRefreshTTL  bool
	CustomUsername  string
	CustomPassword  string
	CustomAddresses []string
	CustomTLSConfig *tls.Config
}

RegistryOptions 所有选项

Jump to

Keyboard shortcuts

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