webtypes

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package webtypes holds types shared across web-facing packages.

Keeping these shapes in a single, dependency-free package lets both pkg/webapi and pkg/webauth reference the same Go type so swag emits exactly one schema per wire shape in the OpenAPI spec (no per-package duplicates like webapi.ErrorResponse / webauth.ErrorResponse).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse is the standard JSON error envelope used by every /api/* endpoint. Its wire shape is `{"error": "message"}`.

Jump to

Keyboard shortcuts

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