models

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RaceInfoUpdate

type RaceInfoUpdate struct {
	TankCapacity   *float64   `json:"tank_capacity,omitempty"`
	FuelUse        *float64   `json:"fuel_use,omitempty"`
	EnergyUse      *float64   `json:"energy_use,omitempty"`
	RaceTime       *int64     `json:"race_time,omitempty"`
	Laptime        *int64     `json:"laptime,omitempty"`
	PitLength      *int64     `json:"pit_length,omitempty"`
	ExcludeSafeLap *bool      `json:"exclude_safe_lap,omitempty"`
	CarID          *uuid.UUID `json:"car_id,omitempty"`
	TrackID        *uuid.UUID `json:"track_id,omitempty"`
	TrackLayoutID  *uuid.UUID `json:"track_layout_id,omitempty"`
	ResetEdits     *bool      `json:"reset_edits,omitempty"`
}

func (*RaceInfoUpdate) UpdateStrategy

func (u *RaceInfoUpdate) UpdateStrategy() bool

type SaveStrategy

type SaveStrategy struct {
	ID     uuid.UUID `json:"-"    validate:"required,uuid"`
	UserID uuid.UUID `json:"-"    validate:"required,uuid"`
	Name   string    `json:"name" validate:"required"`
	Type   string    `json:"type" validate:"required,custom_strategy_type"`
}

Jump to

Keyboard shortcuts

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