protocol

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL