client

package
v0.0.0-...-16e66f6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuthBasic

func WithAuthBasic(username, password string) core.ClientOption

WithAuthBasic sets the 'Authorization: Basic <base64>' header on every request.

func WithBaseURL

func WithBaseURL(baseURL string) core.ClientOption

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

func WithHTTPClient

func WithHTTPClient(httpClient core.HTTPClient) core.ClientOption

WithHTTPClient uses the given HTTPClient to issue all HTTP requests.

func WithHTTPHeader

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 {
	Datasetitems    *datasetitems.Client
	Datasetrunitems *datasetrunitems.Client
	Datasets        *datasets.Client
	Health          *health.Client
	Ingestion       *ingestion.Client
	Observations    *observations.Client
	Projects        *projects.Client
	Prompts         *prompts.Client
	Score           *score.Client
	Sessions        *sessions.Client
	Trace           *trace.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