api

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDirectFetchJSON

func MakeDirectFetchJSON(url string, token string, target interface{}) error

MakeDirectFetchJSON makes a direct fetch and unmarshals JSON response

Types

type FetchResponse

type FetchResponse struct {
	StatusCode int
	Body       []byte
	Error      error
}

FetchResponse represents a response from a direct fetch call

func MakeDirectFetch

func MakeDirectFetch(url string, token string) (*FetchResponse, error)

MakeDirectFetch makes a direct fetch call to the API without going through a proxy

Jump to

Keyboard shortcuts

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