api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package api is the HTTP client the CLI uses to talk to the getdebug backend. Phase 1 stub — concrete methods land alongside the API routes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client holds the base URL + auth token for the getdebug API.

func New

func New(baseURL, token string) *Client

New returns a Client with sensible defaults.

func (*Client) Do

func (c *Client) Do(req *http.Request, out any) error

Do issues an HTTP request and decodes the envelope into out (if non-nil). Returns an error built from the envelope's error block on non-ok responses.

Jump to

Keyboard shortcuts

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