Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCodeMarketError api.ErrorCode = "market-error" ErrCodeInstallFailed api.ErrorCode = "install-failed" )
View Source
const ( WebsocketMessageTypeInit = "init" WebsocketMessageTypeEvent = "event" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebsocketMessage ¶
type WebsocketMessage struct { Type string `json:"t"` Payload json.RawMessage `json:"p"` }
func NewWebsocketMessage ¶
func NewWebsocketMessage(dataType string, payload json.RawMessage) *WebsocketMessage
type WebsocketMessageEventPayload ¶
type WebsocketMessageEventPayload struct {
Data map[string]interface{} `json:"d"`
}
type WebsocketMessageInitPayload ¶
type WebsocketMessageInitPayload struct {
AppID repository.AppID `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.