router

package module
v0.0.0-...-4dcc97c Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package router contains signalr.MappableRouter factories for some popular http routers. (Listed in https://www.alexedwards.net/blog/which-go-router-should-i-use) The factories can be used to integrate the signalR server from github.com/philippseith/signalr with the router. If you don't like to reference router modules you aren't using, just copy the source code for the factory for your router.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithChiRouter

func WithChiRouter(r chi.Router) func() signalr.MappableRouter

WithChiRouter is a signalr.MappableRouter factory for signalr.Server.MapHTTP which converts a chi.Router to a signalr.MappableRouter.

func WithGorillaRouter

func WithGorillaRouter(r *mux.Router) func() signalr.MappableRouter

WithGorillaRouter is a signalr.MappableRouter factory for signalr.Server.MapHTTP which converts a mux.Router to a signalr.MappableRouter.

func WithHttpRouter

func WithHttpRouter(r *httprouter.Router) func() signalr.MappableRouter

WithHttpRouter is a signalr.MappableRouter factory for signalr.Server.MapHTTP which converts a httprouter.Router to a signalr.MappableRouter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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