discovery

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Del

func Del(key string, prefix bool)

func GetByPrefix

func GetByPrefix(key string) map[string]string

func Init

func Init(etcds []string)

func Keep

func Keep(key, val string)

func UpdateLoad

func UpdateLoad(ip string, port int)

func Watch

func Watch(key string, watchFunc WatchCallback, prefix bool)

Types

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

type WatchCallback

type WatchCallback func(clientv3.WatchChan)

Jump to

Keyboard shortcuts

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