Documentation ¶
Overview ¶
Package websocket implements the websocket protocol according to RFC 6455. Websockets are used to send updates for all events through the notifications package.
Package websocket implements the websocket protocol according to RFC 6455. Websockets are used to send updates for all events through the notifications package.
Package websocket implements the websocket protocol according to RFC 6455. Websockets are used to send updates for all events through the notifications package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHandler ¶
GetHandler returns a net/http.Handler compatible handler for websockets.
Types ¶
type Message ¶
type Message struct { Name string `json:"name"` Email string `json:"email"` Event string `json:"event"` RepositoryName string `json:"repository_name"` Branch string `json:"branch"` Status string `json:"status"` URL string `json:"url"` }
Message contains all fields consumed by differetn websockets to render different events.
Click to show internal directories.
Click to hide internal directories.