middlewares

package
v0.0.0-...-ac98336 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRUD

func CRUD(group *echo.Group, path string, resource interface{})

CRUD defines the folowwing resources:

POST:   /path
GET:    /path
GET:    /path/:id
PATCH:  /path/:id
DEL:    /path/:id

func DefaultEchorus

func DefaultEchorus() echo.MiddlewareFunc

func Echorus

func Echorus(logger *logrus.Logger) echo.MiddlewareFunc

Types

type CreateSupported

type CreateSupported interface {
	Create(echo.Context) error
}

CreateSupported interface

type DeleteSupported

type DeleteSupported interface {
	Delete(echo.Context) error
}

DeleteSupported interface

type ListSupported

type ListSupported interface {
	List(echo.Context) error
}

ListSupported interface

type ShowSupported

type ShowSupported interface {
	Show(echo.Context) error
}

ShowSupported interface

type UpdateSupported

type UpdateSupported interface {
	Update(echo.Context) error
}

UpdateSupported interface

Jump to

Keyboard shortcuts

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