Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FitDAL ¶
type FitDAL struct {
// contains filtered or unexported fields
}
FitDAL represents an object that can scan for and parse .fit files
func NewFitDALAndScan ¶
func NewFitDALAndScan(rootDir, cachesDir string, nearbyObjectsFetcher domain.NearbyObjectsFetcher) (*FitDAL, error)
NewFitDALAndScan creates a FitDAL with a normal OS Filesystem (not for testing) and scans the rootDir to build up an 'inventory' of fit files
func (*FitDAL) GetAllSummariesInCache ¶
func (d *FitDAL) GetAllSummariesInCache() []*domain.FitFileSummary
GetAllSummariesInCache gets all the tracks currently in the cache To rebuild the cache, call ScanRootDir
func (*FitDAL) RebuildCachesFromRootDir ¶
RebuildCachesFromRootDir rebuilds the cache from the rootDir
Click to show internal directories.
Click to hide internal directories.