methodrouter

package
v0.0.0-...-fe3d589 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MethodRouter

type MethodRouter struct {
	*mux.Router
}

MethodRouter beepboop.

func NewMethodRouter

func NewMethodRouter() *MethodRouter

NewMethodRouter creates a new method router.

func (*MethodRouter) HandleFunc

func (mr *MethodRouter) HandleFunc(path string, f func(http.ResponseWriter,
	*http.Request), methods ...string) *mux.Route

HandleFunc registers a route that handles both paths and methods.

Jump to

Keyboard shortcuts

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