Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver is a helper class, for managing a combined pull push on a topic. It is used for implementation of the + (receive) command in the guble protocol.
type WSConnection ¶
type WSConnection interface { Close() Send(bytes []byte) (err error) Receive(bytes *[]byte) (err error) }
WSConnection is a wrapper interface for the needed functions of the websocket.Conn It is introduced for testability of the WSHandler
type WSHandler ¶
type WSHandler struct {
// contains filtered or unexported fields
}
WSHandler is a struct used for handling websocket connections on a certain prefix.
func NewWSHandler ¶
NewWSHandler returns a new WSHandler.
type WebSocket ¶
type WebSocket struct { *WSHandler WSConnection // contains filtered or unexported fields }
WebSocket struct represents a websocket.
func NewWebSocket ¶
func NewWebSocket(handler *WSHandler, wsConn WSConnection, userID string) *WebSocket
NewWebSocket returns a new WebSocket.
Click to show internal directories.
Click to hide internal directories.