route

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 11 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

type Template added in v0.3.5

type Template struct {
	// contains filtered or unexported fields
}

func (*Template) Render added in v0.3.5

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Jump to

Keyboard shortcuts

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