client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package Client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTP    *http.Client
	Debug   bool
	Headers []string
	URL     string
}

Client config

func Configure

func Configure(url string, debug bool, timeout int, headers []string) *Client

Configure client

func ConfigureWithInsecureTLS

func ConfigureWithInsecureTLS(url string, enableHTTP2, debug bool, timeout int, headers []string) *Client

Configure client with insecure SSL

func ConfigureWithTLS

func ConfigureWithTLS(url string, caFile string, keyFile, certFile string, enableHTTP2, insecure bool, debug bool, timeout int, headers []string) *Client

Configure client with SSL

func (Client) Push

func (client Client) Push(wr *prompb.WriteRequest) error

Push timeseries to a remote write url

func (Client) PushWithRetries

func (client Client) PushWithRetries(wr *prompb.WriteRequest) error

Push with retries timeseries to a remote write url

Jump to

Keyboard shortcuts

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