router

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 6 Imported by: 0

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 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