routes

package
v0.0.0-...-f3973e5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HomeRoute

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

func (HomeRoute) Routes

func (r HomeRoute) Routes() []Route

type ItemRoute

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

func NewItemRoute

func NewItemRoute(handler handlers.ItemHandler) ItemRoute

func (ItemRoute) Routes

func (r ItemRoute) Routes() []Route

type LocationRoute

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

func NewLocationRoute

func NewLocationRoute(handler handlers.LocationHandler) LocationRoute

func (LocationRoute) Routes

func (r LocationRoute) Routes() []Route

type Route

type Route struct {
	Method string
	Path   string
	Handle echo.HandlerFunc
}

func NewRoute

func NewRoute(method, path string, handle echo.HandlerFunc) Route

NewRoute creates a new route with the given method, path and handler.

method: http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete,...

type Routes

type Routes interface {
	Routes() []Route
}

Jump to

Keyboard shortcuts

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