proto

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func DeleteByEventId(ctx context.Context, conn repository.Querier, eventId int) (int, error)

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.

Jump to

Keyboard shortcuts

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