router

package
v5.7.9 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMuxRouter

func GetMuxRouter() *mux.Router

func Handle

func Handle(pattern string, handler func(http.ResponseWriter, *http.Request)) *mux.Route

func Init

func Init()

func ListenAndServe added in v5.5.9

func ListenAndServe(addr string) error

func ListenAndServeAsLambda added in v5.5.9

func ListenAndServeAsLambda()

func LockRoute

func LockRoute(pattern string)

func PeekRouteLock

func PeekRouteLock(assumed string)

func WebSocket

func WebSocket(pattern string, upgrader *websocket.Upgrader, handler func(*websocket.Conn)) *mux.Route

Types

type Router

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

Jump to

Keyboard shortcuts

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