zk

package
v1.20.10 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BranchSymbol = "*"

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	IP     string
	Port   uint
	Scheme string
	Name   string
	Path   string
}

type Event

type Event struct {
	Type      EventType
	Endpoints []*Endpoint
}

type EventType

type EventType int
const (
	EventNodeUp EventType = iota
	EventNodeDown
)

func (EventType) String

func (et EventType) String() string

type Zk

type Zk interface {
	Watch(paths []string) chan *Event
	List(paths []string) []*Endpoint
	Close()
}

func New

func New(cfg *config.Config) (z Zk, err error)

Jump to

Keyboard shortcuts

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