api

package
v0.0.0-...-4387e80 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Problem

type Problem struct {
	Type     string `json:"type"`
	Title    string `json:"title"`
	Status   int    `json:"status"`
	Detail   string `json:"detail"`
	Instance string `json:"instance"`
}

Problem defines the Problem JSON type defined by RFC 7807 - media type application/problem+json. It should be the expected error response for all APIs.

type Response

type Response struct {
	Code int
	Body interface{}
}

Response is a simple response from an HTTP service. Body is assumed to be an object that is json serializable.

Jump to

Keyboard shortcuts

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