api

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package api provides http handlers for the API.

Index

Constants

View Source
const (
	GithubAPIURL  = "https://api.github.com"
	GithubHTTPURL = "https://github.com"
)

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, err error)

Error writes an HTTP response with a JSON-API encoded error.

func New

func New(opts Options) *api

Types

Directories

Path Synopsis
Package types provides structs suitable for marshaling to/from json:api
Package types provides structs suitable for marshaling to/from json:api

Jump to

Keyboard shortcuts

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