timeline

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment

type Segment struct {
	State dag.DisplayState
	Dur   time.Duration
}

Segment is one contiguous interval spent in a display state.

type Span

type Span struct {
	Service      string
	Segments     []Segment
	Final        dag.DisplayState
	Duration     time.Duration
	WaitsOn      string
	AttachedLate bool // true when first observed already healthy/completed
}

Span is the timeline history for one service.

type Tracker

type Tracker struct {
	// contains filtered or unexported fields
}

Tracker records display-state transitions for services over time.

func New

func New(now time.Time) *Tracker

New creates a tracker starting at now.

func (*Tracker) Observe

func (t *Tracker) Observe(snap *discover.Snapshot, now time.Time)

Observe records the current display state of each service in a snapshot.

func (*Tracker) Spans

func (t *Tracker) Spans(project string, now time.Time) []Span

Spans returns render-ready timeline spans for one compose project.

type Transition

type Transition struct {
	State dag.DisplayState
	At    time.Time
}

Transition captures a service display-state change at a point in time.

Jump to

Keyboard shortcuts

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