handlers

package
v0.0.0-...-19cf393 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAppHandler

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

CreateAppHandler is the http.Handler that creates new applications

func NewCreateAppHandler

func NewCreateAppHandler(db db.DB) *CreateAppHandler

NewCreateAppHandler initializes and returns a new CreateAppHandler with the given database

func (*CreateAppHandler) RegisterRoute

func (c *CreateAppHandler) RegisterRoute(r *mux.Router)

RegisterRoute registers the appropriate route for this handler on the given router

func (*CreateAppHandler) ServeHTTP

func (c *CreateAppHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is the http.Handler interface implementation

type DeleteAppHandler

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

CreateAppHandler is the http.Handler that deletes existing applications

func NewDeleteAppHandler

func NewDeleteAppHandler(db db.DB) *DeleteAppHandler

NewDeleteAppHandler initializes and returns a new DeleteAppHandler with the given database

func (*DeleteAppHandler) RegisterRoute

func (c *DeleteAppHandler) RegisterRoute(r *mux.Router)

RegisterRoute registers the appropriate route for this handler on the given router

func (*DeleteAppHandler) ServeHTTP

func (c *DeleteAppHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is the http.Handler interface implementation

type GetAppHandler

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

GetAppHandler is the http.Handler that gets and returns existing applications

func NewGetAppHandler

func NewGetAppHandler(db db.DB) *GetAppHandler

NewGetAppHandler initializes and returns a new GetAppHandler with the given database

func (*GetAppHandler) RegisterRoute

func (c *GetAppHandler) RegisterRoute(r *mux.Router)

RegisterRoute registers the appropriate route for this handler on the given router

func (*GetAppHandler) ServeHTTP

func (c *GetAppHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is the http.Handler interface implementation

Jump to

Keyboard shortcuts

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