api

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package api provides http handlers for the API.

Index

Constants

This section is empty.

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