Documentation
¶
Overview ¶
Package routing is the Trickster Request Router
Index ¶
- func RegisterDefaultBackendRoutes(r router.Router, conf *config.Config, bknds backends.Backends, ...)
- func RegisterHealthHandler(router router.Router, path string, hc healthcheck.HealthChecker, ...)
- func RegisterPathRoutes(r router.Router, conf *config.Config, handlers handlers.Lookup, ...)
- func RegisterProxyRoutes(conf *config.Config, clients backends.Backends, r router.Router, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDefaultBackendRoutes ¶
func RegisterDefaultBackendRoutes(r router.Router, conf *config.Config, 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, backends backends.Backends, )
RegisterHealthHandler registers the main health handler
func RegisterPathRoutes ¶
func RegisterPathRoutes(r router.Router, conf *config.Config, handlers handlers.Lookup, client backends.Backend, o *bo.Options, c cache.Cache, 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 RegisterProxyRoutes ¶
func RegisterProxyRoutes(conf *config.Config, clients backends.Backends, r router.Router, metricsRouter router.Router, caches cache.Lookup, tracers tracing.Tracers, dryRun bool, ) 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.