routes

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEcho

func NewEcho() *echo.Echo

NewEcho registers a new Echo instance

func RateLimit

func RateLimit(rateLimiter *limiter.Limiter, rateLimitKind string) echo.MiddlewareFunc

RateLimit is the rate limit middleware

func RegisterRoutes

func RegisterRoutes(e *echo.Echo)

RegisterRoutes registers all routes for the application

Types

type CustomValidator

type CustomValidator struct{}

CustomValidator is a dummy struct to use govalidator with echo

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

Validate validates stuff

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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