router

package
v0.0.0-...-e9665ab Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeMux

type ServeMux struct {
	*http.ServeMux
	// contains filtered or unexported fields
}

func NewServeMux

func NewServeMux() *ServeMux

func (*ServeMux) Before

func (mux *ServeMux) Before(mw middleware.Middleware)

func (*ServeMux) Group

func (mux *ServeMux) Group(routeGroup func(mux *ServeMux))

func (*ServeMux) Handle

func (mux *ServeMux) Handle(pattern string, handler http.Handler, names ...string)

func (*ServeMux) HandleFunc

func (mux *ServeMux) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request), names ...string)

func (*ServeMux) Named

func (mux *ServeMux) Named(name, pattern string)

func (*ServeMux) Path

func (mux *ServeMux) Path(name string, paramArgPairs ...any) string

func (*ServeMux) ServeHTTP

func (mux *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*ServeMux) Use

func (mux *ServeMux) Use(mw middleware.Middleware)

Jump to

Keyboard shortcuts

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