rest

package
v0.3.38 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A3YClient added in v0.2.0

type A3YClient struct {
}

type APIClient

type APIClient struct {
	versioned.Interface

	BaseURL    string
	BaseHost   string
	APIKey     string
	ProjectID  uuid.UUID
	HTTPClient *http.Client
	RESTConfig *rest.Config
}

APIClient represents the HTTP client with API key, project ID, and base URL configuration.

func NewAPIClient

func NewAPIClient(baseURL, baseHost, apiKey string, projectID uuid.UUID) (*APIClient, error)

NewAPIClient creates a new instance of the APIClient.

func (*APIClient) SendRequest

func (c *APIClient) SendRequest(method, path string, body []byte) (*http.Response, error)

SendRequest sends an HTTP request with the configured headers.

Jump to

Keyboard shortcuts

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