route

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBindPredicate

func AddBindPredicate(router *httprouter.Router, predicate predicate.BindPredicate)

func AddFilterPredicate

func AddFilterPredicate(router *httprouter.Router, predicate predicate.FilterPredicate)

func AddHealthProbe

func AddHealthProbe(router *httprouter.Router)

func AddMetricsHandle

func AddMetricsHandle(router *httprouter.Router, metrics http.Handler)

func AddVersion

func AddVersion(router *httprouter.Router)

func BindPredicateRoute

func BindPredicateRoute(predicate predicate.BindPredicate) httprouter.Handle

func DebugLogging

func DebugLogging(h httprouter.Handle, path string) httprouter.Handle

DebugLogging wraps handler for debugging purposes

func FilterPredicateRoute

func FilterPredicateRoute(predicate predicate.FilterPredicate) httprouter.Handle

func VersionRoute

func VersionRoute(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)

VersionRoute returns the version of router in response

Types

This section is empty.

Jump to

Keyboard shortcuts

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