router

package
v0.0.0-...-ea0e1bd Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpMethodAny = `HttpMethodAny`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Gin

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

func NewGin

func NewGin(engine *gin.Engine) *Gin

func (*Gin) Route

func (g *Gin) Route(path string, f func(w http.ResponseWriter, r *http.Request), methods ...string)

type Router

type Router interface {
	Route(path string, h func(w http.ResponseWriter, r *http.Request), methods ...string)
}

type ServeMux

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

func NewServeMux

func NewServeMux(mux *http.ServeMux) *ServeMux

func (*ServeMux) Route

func (s *ServeMux) Route(path string, h func(w http.ResponseWriter, r *http.Request), methods ...string)

Jump to

Keyboard shortcuts

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