route

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package route will hold the routes and route groups

Index

Constants

This section is empty.

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
}

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