convert

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCar

func ConvertCar(m *model.Car) *carv1.Car

func ConvertCarClass

func ConvertCarClass(m *model.CarClass) *carv1.CarClass

func ConvertCarClasses

func ConvertCarClasses(m []model.CarClass) []*carv1.CarClass

func ConvertCarEntries

func ConvertCarEntries(m []model.CarEntry) []*carv1.CarEntry

func ConvertCarEntry

func ConvertCarEntry(m *model.CarEntry) *carv1.CarEntry

func ConvertCarInfo

func ConvertCarInfo(m *model.CarInfo) *carv1.CarInfo

func ConvertCarInfos

func ConvertCarInfos(m []model.CarInfo) []*carv1.CarInfo

func ConvertCurrentDrivers

func ConvertCurrentDrivers(m map[int]string) map[uint32]string

func ConvertDriver

func ConvertDriver(m *model.Driver) *driverv1.Driver

func ConvertDrivers

func ConvertDrivers(m []model.Driver) []*driverv1.Driver

func ConvertTeam

func ConvertTeam(m *model.Team) *driverv1.Team

Types

type SpeedmapMessageConverter

type SpeedmapMessageConverter struct{}

func NewSpeedmapMessageConverter

func NewSpeedmapMessageConverter() *SpeedmapMessageConverter

func (*SpeedmapMessageConverter) ConvertSpeedmapPayload

func (c *SpeedmapMessageConverter) ConvertSpeedmapPayload(
	in *model.SpeedmapData,
) *speedmapv1.Speedmap

type StateConverter

type StateConverter struct {
	// contains filtered or unexported fields
}

func NewStateMessageConverter

func NewStateMessageConverter(e *model.DbEvent, eventKey string) *StateConverter

func (*StateConverter) ConvertStatePayload

func (p *StateConverter) ConvertStatePayload(m *model.StateData) *racestatev1.PublishStateRequest

Jump to

Keyboard shortcuts

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