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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Install = definePlugin.Install

Install 安装插件

View Source
var Uninstall = definePlugin.Uninstall

Uninstall 卸载插件

Functions

This section is empty.

Types

type DSyncOption added in v0.1.14

type DSyncOption func(options *DSyncOptions)

type DSyncOptions added in v0.1.14

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

type WithOption

type WithOption struct{}

func (WithOption) Default

func (WithOption) Default() DSyncOption

func (WithOption) EtcdClient

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

func (WithOption) EtcdConfig

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

func (WithOption) FastAddresses

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

func (WithOption) FastAuth

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

func (WithOption) FastSecure

func (WithOption) FastSecure(secure bool) DSyncOption

func (WithOption) FastTLSConfig

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

func (WithOption) KeyPrefix

func (WithOption) KeyPrefix(prefix string) DSyncOption

func (WithOption) WatchChanSize

func (WithOption) WatchChanSize(size int) DSyncOption

Jump to

Keyboard shortcuts

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