routing

package
v1.1.0-beta2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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