Documentation
¶
Index ¶
- func Json[Q any, R any](handler HandlerFuncImpl[Q, R]) http.HandlerFunc
- func JsonReqNoResp[Q any](handler HandlerNoResp[Q]) http.HandlerFunc
- func NoReqJsonResp[R any](handler HandlerNoReq[R]) http.HandlerFunc
- func NoReqNoResp(handler HandlerNoReqNoResp) http.HandlerFunc
- type HandlerFuncImpl
- type HandlerNoReq
- type HandlerNoReqNoResp
- type HandlerNoResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Json ¶
func Json[Q any, R any](handler HandlerFuncImpl[Q, R]) http.HandlerFunc
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 HandlerFuncImpl ¶
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)
Click to show internal directories.
Click to hide internal directories.