api

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 7 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 {
	StatusCode int
	Detail     string
}

func (*APIError) Error

func (e *APIError) Error() string

type Client

type Client struct {
	BaseURL    string
	Token      string
	HTTPClient *http.Client
}

func NewClient

func NewClient(baseURL, token string) *Client

func (*Client) Delete

func (c *Client) Delete(path string) (json.RawMessage, error)

func (*Client) Get

func (c *Client) Get(path string) (json.RawMessage, error)

func (*Client) Patch

func (c *Client) Patch(path string, body interface{}) (json.RawMessage, error)

func (*Client) Post

func (c *Client) Post(path string, body interface{}) (json.RawMessage, error)

func (*Client) Put

func (c *Client) Put(path string, body interface{}) (json.RawMessage, error)

Jump to

Keyboard shortcuts

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