Documentation
¶
Index ¶
Constants ¶
View Source
const RuntimeKey = "github.com/bzimmer/gravl#RuntimeKey"
Variables ¶
This section is empty.
Functions ¶
func Befores ¶
func Befores(bfs ...cli.BeforeFunc) cli.BeforeFunc
Befores combines multiple `cli.BeforeFunc`s into a single `cli.BeforeFunc`
Types ¶
type Rt ¶
type Rt struct {
// Metadata
Start time.Time
// Activity clients
Zwift *zwift.Client
Strava *strava.Client
RideWithGPS *rwgps.Client
CyclingAnalytics *cyclinganalytics.Client
// Endpoints
Endpoints map[string]oauth2.Endpoint
// Export / Upload
Exporters map[string]ExporterFunc
Uploaders map[string]UploaderFunc
// IO
Fs afero.Fs
Encoder Encoder
// Metrics
Metrics *metrics.Metrics
Sink *metrics.InmemSink
// Evaluation
Filterer func(string) (eval.Filterer, error)
Evaluator func(string) (eval.Evaluator, error)
}
Rt holds the gravl runtime
Click to show internal directories.
Click to hide internal directories.