middleware

package
v0.0.0-...-93d971c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	Logger  *logging.Logger
	Service api.API
}

func (*Middleware) Add

func (m *Middleware) Add(ctx *macaron.Context, res http.ResponseWriter, req *http.Request) error

Add handles an API.Add request

func (*Middleware) All

func (m *Middleware) All(res http.ResponseWriter, req *http.Request) error

All handles an API.All request

func (*Middleware) Get

func (m *Middleware) Get(ctx *macaron.Context, res http.ResponseWriter, req *http.Request) error

Get handles an API.Get request

func (*Middleware) Remove

func (m *Middleware) Remove(ctx *macaron.Context, res http.ResponseWriter, req *http.Request) error

Remove handles an API.Remove request

func (*Middleware) SetupRoutes

func (m *Middleware) SetupRoutes(projectName, projectVersion, projectBuild string) http.Handler

Jump to

Keyboard shortcuts

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