xjhttp

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func Default

func Default() *Engine

func (*Engine) GetHandle

func (engine *Engine) GetHandle(mapHandle map[int]http.HandlerFunc) http.HandlerFunc

func (*Engine) HandleFunc

func (engine *Engine) HandleFunc(method, pattern string, handler func(http.ResponseWriter, *http.Request))

func (*Engine) PathMatch

func (engine *Engine) PathMatch(path, pattern string) int

func (*Engine) Run

func (engine *Engine) Run(address string) (err error)

func (*Engine) ServeHTTP

func (engine *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Route

type Route struct {
	Method  string
	Pattern string
	Handler http.HandlerFunc
}

Jump to

Keyboard shortcuts

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