httpreq

package
v0.0.0-...-db77838 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package httpreq parses and validates Echo request inputs for HTTP adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAndValidate

func BindAndValidate(c *echo.Context, req any) error

BindAndValidate binds a JSON request body and runs the server validator.

func BindIDs

func BindIDs(c *echo.Context) ([]int64, error)

BindIDs binds and validates a batch-operation request body carrying IDs: at least one ID and every ID positive.

func Pagination

func Pagination(c *echo.Context) (int, int, error)

Pagination parses standard page and page_size query parameters, applying the platform default page size when page_size is omitted.

func PathID

func PathID(c *echo.Context, name, label string) (int64, error)

PathID parses a positive int64 path parameter.

func QueryBool

func QueryBool(c *echo.Context, name string, fallback bool) (bool, error)

QueryBool parses an optional bool query parameter.

func QueryInt

func QueryInt(c *echo.Context, name string, fallback int) (int, error)

QueryInt parses an optional int query parameter.

func QueryInt64

func QueryInt64(c *echo.Context, name string, fallback int64) (int64, error)

QueryInt64 parses an optional int64 query parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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