etcd

package
v0.0.0-...-57df5a1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(addr string, timeout time.Duration) (err error)

Init 初始化ETCD的函数

func WatchConf

func WatchConf(key string, newConfCh chan<- []*LogEntry)

WatchConf etcd watch

Types

type LogEntry

type LogEntry struct {
	Path  string `json:"path"`
	Topic string `json:"topic"`
}

func GetConf

func GetConf(key string) (logEntryConf []*LogEntry, err error)

GetConf 从etcd中根据key获取配置项

Jump to

Keyboard shortcuts

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