route

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package route will hold the routes and route groups

Index

Constants

View Source
const (
	V1Version = "v1"
)

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(router *echo.Echo, h *handlers.Handler) error

RegisterRoutes with the echo routers

Types

type Route

type Route struct {
	Method      string
	Path        string
	Handler     echo.HandlerFunc
	Middlewares []echo.MiddlewareFunc

	Name string
}

func (*Route) RegisterRoute

func (r *Route) RegisterRoute(router *echo.Echo) (err error)

RegisterRoute with the echo server given a method, path, and handler definition

Jump to

Keyboard shortcuts

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