client

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Name() string
	Target() string
	String() string
	Shutdown()
}

Client define a remote storage.

type Reader

type Reader interface {
	Read(req *prompb.ReadRequest, r *http.Request) (*prompb.ReadResponse, error)
	Client
}

Reader is a client that read samples from remote.

type Writer

type Writer interface {
	Write(samples model.Samples, r *http.Request, dryRun bool) ([]byte, error)
	Client
}

Writer is a client that sends a batch of samples to remote.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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