service

package
v0.0.0-...-4c8d886 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(configFields manager.ConfigFileFields) *mux.Router

NewRouter creates and configures a mux router

func ReturnHTTPError

func ReturnHTTPError(w http.ResponseWriter, r *http.Request, httpStatus int, errorMessage string)

ReturnHTTPError handles sending out CatalogError response

Types

type MuxWrapper

type MuxWrapper struct {
	Router *mux.Router
}

MuxWrapper is a wrapper over the mux router

var Wrapper *MuxWrapper

func (*MuxWrapper) ServeHTTP

func (httpWrapper *MuxWrapper) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Proxy

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

Proxy is our ReverseProxy object

func NewProxy

func NewProxy(target string) (*Proxy, error)

Jump to

Keyboard shortcuts

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