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, ...) (*util.RangeContainer[racestatev1.PublishSpeedmapRequest], error)
- func LoadRangeBySessionTime(ctx context.Context, conn repository.Querier, eventId int, sessionTime float64, ...) (*util.RangeContainer[racestatev1.PublishSpeedmapRequest], 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, ) (*util.RangeContainer[racestatev1.PublishSpeedmapRequest], error)
func LoadRangeBySessionTime ¶ added in v0.22.0
func LoadRangeBySessionTime( ctx context.Context, conn repository.Querier, eventId int, sessionTime float64, limit int, ) (*util.RangeContainer[racestatev1.PublishSpeedmapRequest], 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.