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
Click to show internal directories.
Click to hide internal directories.