cmd

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type ExerciseData

type ExerciseData struct {
	ExerciseIndex int       `json:"exerciseIndex"`
	ExerciseName  string    `json:"exerciseName"`
	ExerciseID    string    `json:"exerciseId"`
	ExerciseTypes string    `json:"exerciseTypes"` // WR=weight/reps, DD=distance/duration, ND=no data
	ExerciseNotes string    `json:"exerciseNotes"`
	SetsData      []SetData `json:"setsData"`
}

ExerciseData mirrors the exerciseData array items.

type ExerciseSummary

type ExerciseSummary struct {
	Name     string         `json:"name"`
	Type     string         `json:"type"`
	Sessions []SessionStats `json:"sessions"`
}

ExerciseSummary holds all sessions for one exercise.

type Post

type Post struct {
	ID              string         `json:"id"`
	StartedAt       string         `json:"startedAt"`
	PostedAt        string         `json:"postedAt"`
	SessionDuration string         `json:"sessionDuration"`
	SessionNotes    string         `json:"sessionNotes"`
	Bodyweight      string         `json:"bodyweight"`
	CaloriesBurned  int            `json:"caloriesBurned"`
	PRCount         int            `json:"prCount"`
	ExerciseData    []ExerciseData `json:"exerciseData"`
}

Post is a Liftoff workout post.

type SessionStats

type SessionStats struct {
	Date       string  `json:"date"`
	Bodyweight float64 `json:"bodyweight"`
	Sets       int     `json:"sets"`
	Reps       int     `json:"reps"`
	BestWeight float64 `json:"bestWeight,omitempty"`
	BestReps   int     `json:"bestReps,omitempty"`
	Volume     float64 `json:"volume,omitempty"`
	Duration   int     `json:"duration,omitempty"`
	Distance   float64 `json:"distance,omitempty"`
}

SessionStats holds stats for one exercise in one workout.

type SetData

type SetData struct {
	SetIndex int         `json:"setIndex"`
	SetType  string      `json:"setType"`
	InputOne json.Number `json:"inputOne"` // weight (kg) or distance
	InputTwo json.Number `json:"inputTwo"` // reps or duration (seconds)
}

SetData mirrors the setsData array items.

Jump to

Keyboard shortcuts

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