mux

package module
v0.0.0-...-e2c0bcd Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Zlib Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler

type HttpHandler struct {
	// contains filtered or unexported fields
}

HttpHandler As per https://go.dev/blog/maps, map order is not guaranteed to be the same. (This is a language decision) A sorted slice of string keys in the handler is used to match routes from the most to the least specific pattern.

func NewHandler

func NewHandler() *HttpHandler

func (*HttpHandler) DELETE

func (mux *HttpHandler) DELETE(r string, h http.HandlerFunc)

func (*HttpHandler) GET

func (mux *HttpHandler) GET(r string, h http.HandlerFunc)

func (*HttpHandler) HandleFunc

func (mux *HttpHandler) HandleFunc(r string, h http.HandlerFunc)

func (*HttpHandler) OPTIONS

func (mux *HttpHandler) OPTIONS(r string, h http.HandlerFunc)

func (*HttpHandler) POST

func (mux *HttpHandler) POST(r string, h http.HandlerFunc)

func (*HttpHandler) PUT

func (mux *HttpHandler) PUT(r string, h http.HandlerFunc)

func (*HttpHandler) ServeHTTP

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

type RouteEntry

type RouteEntry struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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