http

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

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(o *Options, converter *dbmodel.Converter, l *zap.Logger) *Client

func (*Client) SendData

func (c *Client) SendData(metrics []prompb.TimeSeries) error

type Hosts

type Hosts struct {
	Host string
	Port int
}

type Options

type Options struct {
	Hosts        []Hosts
	HttpPassword string
	HttpUsername string
	SSL          bool
	HttpApiPath  string
	Factory      metrics.Factory
	Timeout      time.Duration
	MaxChunk     int
}

type WriterMetrics

type WriterMetrics struct {
	WrittenSuccess metrics.Counter
	WrittenFailure metrics.Counter
}

Jump to

Keyboard shortcuts

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