routing

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package routing is the Trickster Request Router

Index

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.

Jump to

Keyboard shortcuts

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