thingconsul

package
v2.0.1-ea Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulEvent

type ConsulEvent struct {
	WatchId   string
	Endpoints consulwatch.Endpoints
}

type ConsulWatchMaker

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

func (*ConsulWatchMaker) MakeConsulWatch

func (m *ConsulWatchMaker) MakeConsulWatch(spec watchapi.ConsulWatchSpec) (*supervisor.Worker, error)

type ConsulWatchMan

type ConsulWatchMan interface {
	Work(*supervisor.Process) error
	NumWatched() int
	WithWatched(func(map[string]*supervisor.Worker))
}

func NewConsulWatchMan

func NewConsulWatchMan(eventsCh chan<- ConsulEvent, watchesCh <-chan []watchapi.ConsulWatchSpec) ConsulWatchMan

Jump to

Keyboard shortcuts

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