routemgr

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle[TIN, TOUT any](hpath string, method string, perm model.PermDef, f func(context.Context, TIN) (TOUT, error))

func HandleHttp

func HandleHttp(hpath string, method string, perm model.PermDef, f func(w http.ResponseWriter, r *http.Request) error)

func IfErr

func IfErr(w http.ResponseWriter, err error) bool

func Reset

func Reset()

func Router

func Router() *mux.Router

func SimpleQueueHandle added in v0.0.3

func SimpleQueueHandle[TIN any](h func(c context.Context, in TIN) error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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