timeline

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGroup

func IsGroup(name string) bool

Types

type Device

type Device struct {
	Role, Platform, Name, Serial string
}

type Gesture

type Gesture struct {
	ID   int
	Role string
	At   time.Duration
	Kind string
	Pts  [][2]int
	W, H int
	// contains filtered or unexported fields
}

type Line

type Line struct {
	Role  string
	At    time.Duration
	Depth int
	Text  string
}

type Meta

type Meta struct {
	Flow     string
	File     string
	Status   string
	Error    string
	Version  string
	Devices  []Device
	Started  time.Time
	Duration time.Duration
}

type Recorder

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

func New

func New() *Recorder

func (*Recorder) Begin

func (r *Recorder) Begin(role string, depth int, name, desc, file string, line int) int

func (*Recorder) Close

func (r *Recorder) Close()

func (*Recorder) End

func (r *Recorder) End(id int, desc, status, err string)

func (*Recorder) Finish

func (r *Recorder) Finish(m Meta)

func (*Recorder) Gesture

func (r *Recorder) Gesture(role, kind string, w, h int, pts ...[2]int)

func (*Recorder) HTML

func (r *Recorder) HTML() []byte

func (*Recorder) Line

func (r *Recorder) Line(role string, depth int, text string)

func (*Recorder) OnWarning

func (r *Recorder) OnWarning(fn func(msg string))

func (*Recorder) Shot

func (r *Recorder) Shot(role, mime string, data []byte, w, h int)

func (*Recorder) Video

func (r *Recorder) Video(role, path string, start, end time.Time)

func (*Recorder) WriteFile

func (r *Recorder) WriteFile(path string) error

type Shot

type Shot struct {
	ID   int
	Role string
	At   time.Duration
	Mime string
	Data []byte
	W, H int
	// contains filtered or unexported fields
}

type Step

type Step struct {
	ID       int
	Parent   int
	Role     string
	Depth    int
	Name     string
	Desc     string
	File     string
	Line     int
	Start    time.Duration
	End      time.Duration
	Status   string
	Err      string
	Done     bool
	Group    bool
	Before   int
	After    int
	Gestures []int
	Lines    []int
}

type Video

type Video struct {
	ID         int
	Role       string
	Path       string
	Start, End time.Duration
}

Jump to

Keyboard shortcuts

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