Documentation
¶
Overview ¶
Package routing is the Trickster Request Router
Index ¶
- func RegisterDefaultBackendRoutes(r router.Router, bknds backends.Backends, tracers tracing.Tracers)
- func RegisterHealthHandler(router router.Router, path string, hc healthcheck.HealthChecker)
- func RegisterPathRoutes(r router.Router, handlers handlers.Lookup, client backends.Backend, ...)
- func RegisterPprofRoutes(routerName string, r router.Router)
- func RegisterProxyRoutes(conf *config.Config, r router.Router, metricsRouter router.Router, ...) (backends.Backends, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDefaultBackendRoutes ¶
func RegisterDefaultBackendRoutes(r router.Router, bknds backends.Backends, tracers tracing.Tracers)
RegisterDefaultBackendRoutes will iterate the Backends and register the default routes
func RegisterHealthHandler ¶
func RegisterHealthHandler(router router.Router, path string, hc healthcheck.HealthChecker)
RegisterHealthHandler registers the main health handler
func RegisterPathRoutes ¶
func RegisterPathRoutes(r router.Router, handlers handlers.Lookup, client backends.Backend, o *bo.Options, c cache.Cache, paths po.Lookup, tracers tracing.Tracers)
RegisterPathRoutes will take the provided default paths map, merge it with any path data in the provided backend options, and then register the path routes to the appropriate handler from the provided handlers map
func RegisterPprofRoutes ¶
RegisterPprofRoutes will register the Pprof Debugging endpoints to the provided router
func RegisterProxyRoutes ¶
func RegisterProxyRoutes(conf *config.Config, r router.Router, metricsRouter router.Router, caches cache.Lookup, tracers tracing.Tracers, dryRun bool) (backends.Backends, error)
RegisterProxyRoutes iterates the Trickster Configuration and registers the routes for the configured backends
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.