httpfunc

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonReqNoResp

func JsonReqNoResp[Q any](handler HandlerNoResp[Q]) http.HandlerFunc

func NoReqJsonResp

func NoReqJsonResp[R any](handler HandlerNoReq[R]) http.HandlerFunc

func NoReqNoResp

func NoReqNoResp(handler HandlerNoReqNoResp) http.HandlerFunc

Types

type HandlerNoReq

type HandlerNoReq[R any] func(ctx context.Context) (response R, err jsonresp.HttpStatusCoder)

type HandlerNoReqNoResp

type HandlerNoReqNoResp func(ctx context.Context) (err jsonresp.HttpStatusCoder)

type HandlerNoResp

type HandlerNoResp[Q any] func(ctx context.Context, request Q) (err jsonresp.HttpStatusCoder)

Jump to

Keyboard shortcuts

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