service

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: Apache-2.0 Imports: 20 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 CreateCatalogRequest added in v0.16.10

type CreateCatalogRequest 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