router

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(url string, controller interface{}, action string)

func Connect

func Connect(url string, controller interface{}, action string)

func Delete

func Delete(url string, controller interface{}, action string)

func Get

func Get(url string, controller interface{}, action string)
func Head(url string, controller interface{}, action string)

func Method

func Method(method string, url string, controller interface{}, action string)

func Options

func Options(url string, controller interface{}, action string)

func Path

func Path(url string, controller interface{}, action string)

func Post

func Post(url string, controller interface{}, action string)

func Put

func Put(url string, controller interface{}, action string)

func Trace

func Trace(url string, controller interface{}, action string)

Types

type Router

type Router struct {
	Tree map[string]map[string]interface{}
}

func New

func New() *Router

Jump to

Keyboard shortcuts

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