routing

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 24 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 RegisterPprofRoutes

func RegisterPprofRoutes(routerName string, h *http.ServeMux, log *tl.Logger)

RegisterPprofRoutes will register the Pprof Debugging endpoints to the provided router

func RegisterProxyRoutes

func RegisterProxyRoutes(conf *config.Config, router *mux.Router,
	caches map[string]cache.Cache, tracers tracing.Tracers,
	log *tl.Logger, dryRun bool) (origins.Origins, error)

RegisterProxyRoutes iterates the Trickster Configuration and registers the routes for the configured origins

Types

type ByLen

type ByLen []string

ByLen allows sorting of a string slice by string length

func (ByLen) Len

func (a ByLen) Len() int

func (ByLen) Less

func (a ByLen) Less(i, j int) bool

func (ByLen) Swap

func (a ByLen) Swap(i, j int)

Jump to

Keyboard shortcuts

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