service

package
Version: v0.0.0-...-0a3a519 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(manager *manager.Manager, gormDb *gorm.DB) *mux.Router

func ReturnHTTPError

func ReturnHTTPError(w http.ResponseWriter, r *http.Request, httpStatus int, err error)

func URLEncoded

func URLEncoded(str string) string

TODO: this should return an error

Types

type MuxWrapper

type MuxWrapper struct {
	IsReady bool
	Router  *mux.Router
}

MuxWrapper is a wrapper over the mux router that returns 503 until catalog is ready

func (*MuxWrapper) ServeHTTP

func (httpWrapper *MuxWrapper) 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