Documentation
¶
Index ¶
Constants ¶
View Source
const ( RouteIndex = "/" RouteEvents = "/events" )
View Source
const SSEEventGraph = "graph"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphSnapshot ¶
type GraphSnapshot struct {
ID int64 `json:"id"`
Timestamp time.Time `json:"timestamp"`
DOT string `json:"dot"`
}
GraphSnapshot is the atom in the watch protocol timeline.
type GraphStreamPayload ¶
type GraphStreamPayload struct {
WorkingSnapshots []GraphSnapshot `json:"workingSnapshots"`
PastCollections []SnapshotCollection `json:"pastCollections"`
LatestWorkingID int64 `json:"latestWorkingId"`
LatestPastCollectionID int64 `json:"latestPastCollectionId"`
}
GraphStreamPayload is the wire payload for SSE "graph" events.
type SnapshotCollection ¶
type SnapshotCollection struct {
ID int64 `json:"id"`
Timestamp time.Time `json:"timestamp"`
Snapshots []GraphSnapshot `json:"snapshots"`
}
SnapshotCollection represents an archived batch of working snapshots.
Click to show internal directories.
Click to hide internal directories.