Documentation ¶
Index ¶
- func Create(ctx context.Context, conn repository.Querier, rsInfoId int, ...) error
- func DeleteByEventId(ctx context.Context, conn repository.Querier, eventId int) (int, error)
- func LoadLatest(ctx context.Context, conn repository.Querier, eventId int) (*racestatev1.PublishSpeedmapRequest, error)
- func LoadRange(ctx context.Context, conn repository.Querier, eventId int, startTS time.Time, ...) ([]*racestatev1.PublishSpeedmapRequest, time.Time, error)
- func LoadSnapshots(ctx context.Context, conn repository.Querier, eventId int, intervalSecs int) ([]*analysisv1.SnapshotData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create( ctx context.Context, conn repository.Querier, rsInfoId int, speedmap *racestatev1.PublishSpeedmapRequest, ) error
func DeleteByEventId ¶
deletes an entry from the database, returns number of rows deleted.
func LoadLatest ¶
func LoadLatest( ctx context.Context, conn repository.Querier, eventId int, ) (*racestatev1.PublishSpeedmapRequest, error)
func LoadRange ¶
func LoadRange( ctx context.Context, conn repository.Querier, eventId int, startTS time.Time, limit int, ) ([]*racestatev1.PublishSpeedmapRequest, time.Time, error)
func LoadSnapshots ¶ added in v0.15.0
func LoadSnapshots( ctx context.Context, conn repository.Querier, eventId int, intervalSecs int, ) ([]*analysisv1.SnapshotData, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.