structs

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Commonly used structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body[B any] struct {
	Body B
}

type BodyPath

type BodyPath[B any, P any] struct {
	Body B
	Path P
}

type BodyPathQuery

type BodyPathQuery[B any, P any, Q any] struct {
	Body  B
	Path  P
	Query Q
}

type BodyQuery

type BodyQuery[B any, Q any] struct {
	Body  B
	Query Q
}

type Nothing

type Nothing struct {
}

An empty struct.

Use this for instance for endpoints that take no argument at all, e.g. `GET /health`.

type Path

type Path[P any] struct {
	Path P
}

type PathQuery

type PathQuery[P any, Q any] struct {
	Path  P
	Query Q
}

type Query

type Query[Q any] struct {
	Query Q
}

Jump to

Keyboard shortcuts

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