etcd

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: LGPL-2.1 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Install = definePlugin.Install

Install 安装插件

View Source
var NewRegistry = newEtcdRegistry

NewRegistry 导出newEtcdRegistry,可以配合cache registry将数据缓存本地,提高查询效率

View Source
var Uninstall = definePlugin.Uninstall

Uninstall 卸载插件

Functions

This section is empty.

Types

type RegistryOption added in v0.1.14

type RegistryOption func(options *RegistryOptions)

type RegistryOptions added in v0.1.14

type RegistryOptions struct {
	EtcdClient    *clientv3.Client
	EtcdConfig    *clientv3.Config
	KeyPrefix     string
	WatchChanSize int
	FastUsername  string
	FastPassword  string
	FastAddresses []string
	FastSecure    bool
	FastTLSConfig *tls.Config
}

type WithOption added in v0.1.10

type WithOption struct{}

func (WithOption) Default added in v0.1.10

func (WithOption) Default() RegistryOption

func (WithOption) EtcdClient added in v0.1.10

func (WithOption) EtcdClient(cli *clientv3.Client) RegistryOption

func (WithOption) EtcdConfig added in v0.1.10

func (WithOption) EtcdConfig(config *clientv3.Config) RegistryOption

func (WithOption) FastAddresses added in v0.1.10

func (WithOption) FastAddresses(addrs ...string) RegistryOption

func (WithOption) FastAuth added in v0.1.10

func (WithOption) FastAuth(username, password string) RegistryOption

func (WithOption) FastSecure added in v0.1.10

func (WithOption) FastSecure(secure bool) RegistryOption

func (WithOption) FastTLSConfig added in v0.1.10

func (WithOption) FastTLSConfig(conf *tls.Config) RegistryOption

func (WithOption) KeyPrefix added in v0.1.10

func (WithOption) KeyPrefix(prefix string) RegistryOption

func (WithOption) WatchChanSize added in v0.1.10

func (WithOption) WatchChanSize(size int) RegistryOption

Jump to

Keyboard shortcuts

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