isometric

package
v0.0.0-...-62e5a7b Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWriteAfterClosed = errors.New("workout has already been closed")
	ErrNoData           = errors.New("no data to write out")
)

Functions

This section is empty.

Types

type Workout

type Workout interface {
	fmt.Stringer
	Run(ctx context.Context, model display.Model, loadCell loadcell.Sensor, recorder WorkoutRecorder) error
}

type WorkoutOutcome

type WorkoutOutcome string
const (
	Success WorkoutOutcome = "success"
	Pass    WorkoutOutcome = "pass"
	Failure WorkoutOutcome = "failure"
)

type WorkoutRecorder

type WorkoutRecorder interface {
	Start(ctx context.Context, descriptor string) (WorkoutUpdater, error)
}

type WorkoutUpdater

type WorkoutUpdater interface {
	Write(samples ...loadcell.ForceSample) error
	Finish(outcome WorkoutOutcome) error
	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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