Documentation
¶
Overview ¶
Package data manages the operations on workouts
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Workout ¶
type Workout struct {
ID string
Date time.Time
Description string
IsInterval bool
Duration time.Duration
Distance int
StrokeRate int
StrokeCount int
DragFactor int
TotalCalores int
}
Workout Struct of a workout
type Workouts ¶
type Workouts []Workout
Workouts A slice of workouts
func (Workouts) FilterShortWorkouts ¶
FilterShortWorkouts - Returns workouts which are greater than a certain distance
func (Workouts) FilterWorkoutsByDistance ¶
FilterWorkoutsByDistance - Returns the workouts between two distances
func (Workouts) GetLongestWorkout ¶
GetLongestWorkout - Returns the longest workout over the workout slice
func (Workouts) GetTotalDistance ¶
Click to show internal directories.
Click to hide internal directories.