etcd

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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

type Config struct {
	clientv3.Config
	Key string
}

type Etcd

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

func (*Etcd) Close

func (cc *Etcd) Close() error

func (*Etcd) Config

func (cc *Etcd) Config() any

func (*Etcd) Handle

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