echo

package
v0.0.0-...-57d21b4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPI

func NewAPI(methodContextFactory MethodContextFactory, base EchoOrGroup, middlewares ...echo.MiddlewareFunc) apis.API

NewAPI creates a new echo API

Types

type EchoOrGroup

type EchoOrGroup interface {
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)
}

EchoOrGroup is a common interface between echo.Echo and echo.Group

type EchoResponse

type EchoResponse error

EchoResponse is currently just an error in github.com/labstack/echo

type MethodContextFactory

type MethodContextFactory interface {
	Context(echoCtx echo.Context, path string, resource resources.Resource) resources.MethodContext
}

func NewDefaultMethodContextFactory

func NewDefaultMethodContextFactory(responseBuilderFactory responses.BuilderFactory) MethodContextFactory

Jump to

Keyboard shortcuts

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