etcdclient

package
v0.0.0-...-94c11f6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*clientv3.Client
	// contains filtered or unexported fields
}

Client ...

func New

func New() (*Client, error)

type Config

type Config struct {
	Endpoints        []string
	BasicAuth        bool
	UserName         string
	Password         string
	ConnectTimeout   time.Duration // 连接超时时间
	Secure           bool
	AutoSyncInterval time.Duration // 自动同步member list的间隔
	TTL              int           // 单位:s
	// contains filtered or unexported fields
}

Config etcd config

Jump to

Keyboard shortcuts

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