unicast

package
v0.0.0-...-e75795a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Selector Selector

	// Rules specifies a map between environment keys and upstreams.
	Rules map[string]*url.URL
}

Handler ...

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Selector

type Selector interface {
	Selected(*http.Request) *string
}

Selector is an interface that wraps the Selected method.

Selected returns the key of the selected environment or nil if not found.

Jump to

Keyboard shortcuts

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