speedmap

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 6 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, sm *model.DbSpeedmap) error

func DeleteByEventId

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

deletes all entries for an event with eventID

func LoadAvgLapOverTime

func LoadAvgLapOverTime(
	ctx context.Context,
	conn repository.Querier,
	eventId,
	intervalSecs int) (
	[]*model.AvgLapOverTime, error,
)

func LoadByEventId

func LoadByEventId(
	ctx context.Context,
	conn repository.Querier,
	eventID int,
) ([]*model.DbSpeedmap, error)

func LoadLatestByEventId

func LoadLatestByEventId(
	ctx context.Context,
	conn repository.Querier,
	eventID int,
) (*model.DbSpeedmap, error)

func LoadLatestByEventKey

func LoadLatestByEventKey(
	ctx context.Context,
	conn repository.Querier,
	eventKey string,
) (*model.DbSpeedmap, error)

func LoadRange

func LoadRange(
	ctx context.Context,
	conn repository.Querier,
	eventID int,
	tsBegin float64,
	num int) (
	ret []*model.SpeedmapData, err error,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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