api

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIEndpoint     = "https://api.opensauced.pizza/v1"
	BetaAPIEndpoint = "https://beta.api.opensauced.pizza/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// The configured http client for making API requests
	HTTPClient *http.Client

	// The API endpoint to use when making requests
	// Example: https://api.opensauced.pizza or https://beta.api.opensauced.pizza
	Endpoint string
}

func NewClient

func NewClient(endpoint string) *Client

NewClient creates a new OpenSauced API client for making http requests

Jump to

Keyboard shortcuts

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