Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection(app *gsockets.App, conn *websocket.Conn, cm gsockets.ChannelManager, logger log.Logger) gsockets.Connection
func RenderJSON ¶
func RenderJSON(w http.ResponseWriter, statusCode int, message string, data any)
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(apps gsockets.AppManager) *AuthMiddleware
func (*AuthMiddleware) Handler ¶
func (auth *AuthMiddleware) Handler(next http.Handler) http.Handler
Handler verifies the existence of the app and the signature for the request. See https://pusher.com/docs/channels/library_auth_reference/rest-api#Authentication for implementation details.
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.