etcd

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 21, 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 Option

type Option func(options *Options)

type Options

type Options 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() Option

func (WithOption) EtcdClient

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

func (WithOption) EtcdConfig

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

func (WithOption) FastAddresses

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

func (WithOption) FastAuth

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

func (WithOption) FastSecure

func (WithOption) FastSecure(secure bool) Option

func (WithOption) FastTLSConfig

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

func (WithOption) KeyPrefix

func (WithOption) KeyPrefix(prefix string) Option

func (WithOption) WatchChanSize

func (WithOption) WatchChanSize(size int) Option

Jump to

Keyboard shortcuts

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