client

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithApiKey added in v0.0.35

func WithApiKey(apiKey string) core.ClientOption

WithApiKey sets the apiKey auth header on every request.

func WithBaseURL added in v0.0.32

func WithBaseURL(baseURL string) core.ClientOption

WithBaseURL sets the client's base URL, overriding the default environment, if any.

func WithHTTPClient added in v0.0.32

func WithHTTPClient(httpClient core.HTTPClient) core.ClientOption

WithHTTPClient uses the given HTTPClient to issue all HTTP requests.

func WithHTTPHeader added in v0.0.32

func WithHTTPHeader(httpHeader http.Header) core.ClientOption

WithHTTPHeader adds the given http.Header to all requests issued by the client.

Types

type Client

type Client struct {
	Collections *collections.Client
	Service     *service.Client
	Cluster     *cluster.Client
	Snapshots   *snapshots.Client
	Points      *points.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...core.ClientOption) *Client

Jump to

Keyboard shortcuts

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