service

package
v0.20.6 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 22 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 CatalogRequest added in v0.18.3

type CatalogRequest struct {
	Name   string
	URL    string
	Branch string
	Kind   string
}

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