client

package
v0.0.0-...-8223eb1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

package client implements the normal labels.Applicator functions but maps them onto a grpc server call

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(conn *grpc.ClientConn, logger logging.Logger) Client

func (Client) WatchMatches

func (c Client) WatchMatches(selector klabels.Selector, labelType labels.Type, _ time.Duration, quitCh <-chan struct{}) (chan []labels.Labeled, error)

WatchMatches uses streaming gRPC to subscribe to updates to a label selector and passes each update on the output channel. Returns an error if the initial gRPC call fails. Any further connection breakages will attempt to be re-established in a loop.

aggregationRate is unused because aggregation is handled by the server

Jump to

Keyboard shortcuts

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