client

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 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