Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperationParameters ¶
type PayloadMetadata ¶
type PayloadMetadata struct {
Exists bool `json:"exists"`
}
type WebSocketHandler ¶
type WebSocketHandler struct {
// contains filtered or unexported fields
}
func NewWebSocketHandler ¶
func NewWebSocketHandler(thunder *thunder.Thunder) *WebSocketHandler
func (*WebSocketHandler) HandlerFunc ¶
func (h *WebSocketHandler) HandlerFunc() http.HandlerFunc
type WebSocketMessage ¶
type WebSocketMessage struct { Operation WebSocketOperation `json:"operation"` OperationParameters OperationParameters `json:"operationParameters,omitempty"` Key string `json:"key"` RequestID uint64 `json:"requestId"` TransactionID uint64 `json:"transactionId"` Error Error `json:"error"` Payload json.RawMessage `json:"payload,omitempty"` PayloadMetadata PayloadMetadata `json:"payloadMetadata,omitempty"` }
type WebSocketOperation ¶
type WebSocketOperation string
const ( // Incoming Subscribe WebSocketOperation = "SUBSCRIBE" Add WebSocketOperation = "ADD" Set WebSocketOperation = "SET" Update WebSocketOperation = "UPDATE" Delete WebSocketOperation = "DELETE" // Outgoing ValueChange WebSocketOperation = "VALUE_CHANGE" // Incoming & Outgoing Snapshot WebSocketOperation = "SNAPSHOT" )
Click to show internal directories.
Click to hide internal directories.