handlerwrap

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerWrap

func HandlerWrap[REQ, RES any](service Service[*REQ, *RES]) http.Handler

func HandlerWrapGRPC added in v1.3.12

func HandlerWrapGRPC[REQ, RES any](method types.GrpcService[*REQ, *RES]) http.Handler

func UnWrapContext added in v1.3.12

func UnWrapContext(ctx context.Context) any

func WrapContext added in v1.3.12

func WrapContext(v any) context.Context

Types

type ReqResp

type ReqResp struct {
	*http.Request
	http.ResponseWriter
}

type Service

type Service[REQ, RES any] func(ctx ReqResp, req REQ) (RES, *httpx.ErrResp)

Jump to

Keyboard shortcuts

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