dal

package
v0.0.0-...-95221f7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 14 Imported by: 0

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) Get

func (d *FitDAL) Get(relativeFilePath string) (*domain.FitFile, error)

Get gets a parsed fit file

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

func (d *FitDAL) RebuildCachesFromRootDir() error

RebuildCachesFromRootDir rebuilds the cache from the rootDir

Jump to

Keyboard shortcuts

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