package
0.0.0-20250213122054-00c92c69767f
Repository: https://github.com/femito1/wasa.git
Documentation: pkg.go.dev

# Packages

Package reqcontext contains the request context.

# Functions

ExtractUserIDFromToken extracts the user ID from the request's Authorization header.
ExtractUserIDFromTokenString extracts the user ID from a token string.
GenerateToken generates a JWT token for the given user ID.
New returns a new Router instance.
NewHub creates a new realtime Hub.

# Structs

Client represents a websocket connection from a user.
Config is used to provide dependencies and configuration to the New function.
CustomClaims defines the structure of our JWT claims.
EventMessage represents a realtime event.
Hub maintains the set of active clients and broadcasts messages.
No description provided by the author

# Interfaces

Router is the package API interface representing an API handler builder.