proxy

package
v0.0.0-...-052274c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(ctx *config.Context, prv auth.Provider, mb *mux.Builder)

Setup adds the proxy handlers to the mux.Builder.

Types

type Backend

type Backend struct {
	Ctx *config.Context

	Route *config.RouteInfo

	AuthProvider auth.Provider
}

Backend is an http.Handler that handles traffic to that particular route.

func (*Backend) ServeHTTP

func (b *Backend) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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