etcd

package
v1.15.10 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigCenter = &Etcd{}

Functions

This section is empty.

Types

type Config added in v1.5.11

type Config struct {
	clientv3.Config
	Key string
}

type Etcd

type Etcd struct {
	Conf   Config
	Client *clientv3.Client
}

func (*Etcd) Close added in v1.5.11

func (cc *Etcd) Close() error

func (*Etcd) Config added in v1.5.11

func (cc *Etcd) Config() any

func (*Etcd) Handle added in v1.5.11

func (e *Etcd) Handle(handle func([]byte)) error

TODO: 监听更改

func (*Etcd) Type

func (e *Etcd) Type() string

Jump to

Keyboard shortcuts

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