routes

package
v0.24.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: AGPL-3.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthcheckHandler added in v0.19.0

func HealthcheckHandler(c echo.Context) error

HealthcheckHandler handles healthckeck 'OK' response

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

func SetupTokenMiddleware added in v0.22.0

func SetupTokenMiddleware() echo.MiddlewareFunc

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