ui

package
v0.0.0-...-ad4c16b Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyUIProxyRoutes

func ApplyUIProxyRoutes(r *mux.Router, apiHost string, uiResURL string, cacheTTL time.Duration) error

ApplyUIProxyRoutes adds the UI file proxy routes to the router

Types

type ProxyHandler

type ProxyHandler struct {
	// contains filtered or unexported fields
}

ProxyHandler handles displaying the basics of the user interface

func NewProxyHandler

func NewProxyHandler(apiHost string, target string, cacheTTL time.Duration) *ProxyHandler

NewProxyHandler creates a new proxy handler for a given URL target and TTL

func (ProxyHandler) ServeHTTP

func (h ProxyHandler) 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