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/superbet-group/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.