Documentation
¶
Overview ¶
Package dashboard provides a live browser viewport stream over WebSocket. It captures CDP screencast frames and broadcasts them to connected clients, plus an activity feed of navigation and interaction events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶ added in v0.6.0
type Annotation struct {
ID int `json:"id"`
FrameID uint64 `json:"frame_id"`
Note string `json:"note"`
Region Region `json:"region"`
Screenshot string `json:"screenshot"`
CreatedAt time.Time `json:"created_at"`
}
Annotation couples a human note with the exact frame and region it marks.
type AnnotationArtifact ¶ added in v0.6.0
type AnnotationArtifact struct {
Version int `json:"version"`
Annotations []Annotation `json:"annotations"`
}
AnnotationArtifact is written after each dashboard drawing. Screenshot paths are relative to the artifact so the JSON can be moved as one directory.
type Dashboard ¶
type Dashboard struct {
// contains filtered or unexported fields
}
Dashboard wraps the HTTP server and screencast streamer.
func Start ¶
Start begins screencasting and serving the dashboard UI on the given port. Returns the URL where the dashboard is accessible.
func StartWithOptions ¶ added in v0.6.0
StartWithOptions begins screencasting with optional annotation capture.
func (*Dashboard) AnnotationArtifactPath ¶ added in v0.6.0
AnnotationArtifactPath returns the JSON result artifact when annotations are enabled.