service

package
v0.0.0-...-6213be9 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

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

func NewDiscovery

func NewDiscovery(
	client cf.Client,
	prometheusRegisterer prometheus.Registerer,
	checkInterval time.Duration,
	watcherInterval time.Duration,
) *Discovery

func (*Discovery) Start

func (s *Discovery) Start(ctx context.Context, errChan chan error)

type Watcher

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

func NewWatcher

func NewWatcher(
	service cf.ServiceInstance,
	registerer prometheus.Registerer,
	logcacheClient cf.LogCacheClient,
	checkInterval time.Duration,
) *Watcher

func (*Watcher) Close

func (w *Watcher) Close()

func (*Watcher) Run

func (w *Watcher) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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