api

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Returns latest metrics present in load Watcher cache
	GetLatestWatcherMetrics() (*watcher.WatcherMetrics, error)
}

Watcher Client API

func NewLibraryClient

func NewLibraryClient(opts watcher.MetricsProviderOpts) (Client, error)

Creates a new watcher client when using watcher as a library

func NewServiceClient

func NewServiceClient(watcherAddress string) (Client, error)

Creates a new watcher client when using watcher as a service

Jump to

Keyboard shortcuts

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