replay

package
v0.0.0-...-09da918 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Showtime   time.Duration `long:"showtime" env:"SHOWTIME" default:"1s" description:"step showtime"`
	ReplayFile string        `long:"replay-file" env:"REPLAY_FILE" default:"./snapshot.json" description:"replay file"`
}

type Replay

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

func New

func New(fs afero.Fs, lights lights.ControllerI, opts Options) *Replay

func (*Replay) IsActive

func (r *Replay) IsActive() bool

func (*Replay) Name

func (r *Replay) Name() string

func (*Replay) Start

func (r *Replay) Start(ctx context.Context) error

func (*Replay) Stop

func (m *Replay) Stop()

Jump to

Keyboard shortcuts

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