stupidmux

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

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DELETE

func DELETE(pattern string, handler context.StupidHandler)

func GET

func GET(pattern string, handler context.StupidHandler)

func Group

func Group(prefix string) *routerGroup

func POST

func POST(pattern string, handler context.StupidHandler)

func Run

func Run(addr string) error

Types

type StupidMux

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

func NewStupidMux

func NewStupidMux() *StupidMux

func (*StupidMux) DELETE

func (mux *StupidMux) DELETE(pattern string, handler context.StupidHandler)

func (*StupidMux) GET

func (mux *StupidMux) GET(pattern string, handler context.StupidHandler)

func (StupidMux) Group

func (group StupidMux) Group(prefix string) *routerGroup

func (*StupidMux) POST

func (mux *StupidMux) POST(pattern string, handler context.StupidHandler)

func (*StupidMux) Run

func (mux *StupidMux) Run(address string) error

func (*StupidMux) ServeHTTP

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

func (StupidMux) Use

func (group StupidMux) Use(middleWares ...context.StupidHandler)

middleWares

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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