Documentation ¶
Index ¶
- func Adapt[TIN, TOUT any](f func(context.Context, TIN) (TOUT, error)) http.Handler
- func AdaptErr(h func(response http.ResponseWriter, request *http.Request) error) func(response http.ResponseWriter, request *http.Request)
- func Done(c context.Context) func()
- func DumpAPI(r *mux.Router)
- func Err(c context.Context, err error) bool
- func MWCors(h http.Handler) http.Handler
- func Req(c context.Context) *http.Request
- func Res(c context.Context) http.ResponseWriter
- func Session(c context.Context) *fmodel.Session
- func SessionID(c context.Context) string
- func SetCorsOpts(o CorsOpts)
- func Tenant(c context.Context) string
- func Vars(c context.Context) map[string]string
- type CorsOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptErr ¶
func AdaptErr(h func(response http.ResponseWriter, request *http.Request) error) func(response http.ResponseWriter, request *http.Request)
func SetCorsOpts ¶
func SetCorsOpts(o CorsOpts)
Types ¶
Click to show internal directories.
Click to hide internal directories.