Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpgradeHttp ¶ added in v0.6.0
UpgradeHttp request to websocket and handle communication
func WrapContext ¶
func WrapContext(ctx *gin.Context) core.HTTPContext
WrapContext wraps gin.Context into core.HTTPContext
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler for HTTP request
func (*Handler) AddAPIEndpoints ¶
AddAPIEndpoints to HTTP handler
func (*Handler) AddBaseEndpoints ¶
AddBaseEndpoints to HTTP handler
func (*Handler) AddWebEndpoints ¶
AddWebEndpoints to HTTP handler
type WSRequest ¶ added in v0.6.0
type WSRequest struct { // Type of request (event, widget_action, ...) Type string `json:"type"` // Id of action (event id, widget id, ... ID string `json:"id"` // Data of request Data map[string]interface{} `json:"data"` // Reference to another request (request_response -> original request) Reference *WSRequest `json:"reference"` }
WSRequest send through web socket
type WsClient ¶ added in v0.6.0
type WsClient struct {
// contains filtered or unexported fields
}
WsClient communicates with dashboard in the browser
func NewWsClient ¶ added in v0.6.0
NewWsClient creates client for websocket communication
Click to show internal directories.
Click to hide internal directories.