client

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(baseUrl string, client *http.Client) *Client

func (*Client) Do

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

func (*Client) Refresh

func (c *Client) Refresh(ctx context.Context) error

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type HTTPError

type HTTPError struct {
	Status int
	Body   string
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

Jump to

Keyboard shortcuts

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