client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Status     int
	Body       string
	RetryAfter string
}

func (*APIError) Error

func (e *APIError) Error() string

type Client

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

func New

func New(base string, opts ...Option) *Client

func (*Client) Do

func (c *Client) Do(ctx context.Context, method, path string, in any, out any) error

func (*Client) SetAuth

func (c *Client) SetAuth(authFunc func(r *http.Request))

SetAuth allows setting the auth function after client creation

type Option

type Option func(*Client)

Jump to

Keyboard shortcuts

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