Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.