route

package
v0.0.0-...-7c6e881 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Routes is a global variable to store all routes

Functions

func AsRouteName

func AsRouteName(raw string) string

AsRouteName get a string and transform into a internal route name representation

func DeleteRoute

func DeleteRoute(deleteInfo models.DeleteSchema) bool

DeleteRoute delete a given route and a method, if provided

func FindRoute

func FindRoute(route, method string, headers, params map[string]string) (models.MethodValue, bool)

FindRoute find route in method in registered Routes

func RegisterRoute

func RegisterRoute(routeInfo models.RegisterSchema)

RegisterRoute register a new route in the global context

Types

This section is empty.

Jump to

Keyboard shortcuts

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