echotransport

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package echotransport wraps Echo for use as a resttransport implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a Transport that wraps an Echo application.

Types

type Config

type Config struct {
	Echo                     EchoOrContext
	AuthenticationMiddleware []echo.MiddlewareFunc
	UserContextKey           string
}

Config holds configuration information for the Echo Transport.

type EchoOrContext

type EchoOrContext interface {
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

EchoOrContext represents an Echo application struct or Context interface.

Jump to

Keyboard shortcuts

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