route

package
v1.0.0-Alpha Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GROUP   = "Group"
	Path    = "Path"
	Method  = "Method"
	Handler = "Handler"
)

Variables

This section is empty.

Functions

func MakeRoute

func MakeRoute(filePath string) (err error)

Types

type Group

type Group struct {
	Path   string
	Groups []Group
	Routes []Route
}

Group represents a group of routes

type Route

type Route struct {
	Path    string
	Method  string
	Handler string
}

Route represents a single route with method, path, and handler

type Template

type Template struct {
	Route string
}

Jump to

Keyboard shortcuts

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