extclient

package
v0.0.0-...-55ed90b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthedAPIClient

type AuthedAPIClient struct {
	// contains filtered or unexported fields
}

AuthedAPIClient represents an API client for authorized requests.

func NewAuthedAPIClient

func NewAuthedAPIClient(host, token string) *AuthedAPIClient

NewAuthedAPIClient returns a new API client.

func (*AuthedAPIClient) Get

func (a *AuthedAPIClient) Get(path string) ([]byte, error)

Get performs a GET request to provided endpoint.

func (*AuthedAPIClient) SetHost

func (a *AuthedAPIClient) SetHost(host string)

SetHost sets the host for base host for the authed API client.

Jump to

Keyboard shortcuts

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