convert

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlternatorState

func AlternatorState(input string) rfmsv5.UptimeData_Alternator_State

AlternatorState converts an alternator state to proto.

func AuthenticationEquipment

AuthenticationEquipment converts an rFMS driver authentication equipment to proto.

func Brand added in v0.10.0

func Brand(input string) rfmsv5.Brand

Brand converts an rFMS brand to proto.

func ChargingConnectionState

func ChargingConnectionState(input string) rfmsv5.ChargingConnectionState

ChargingConnectionState converts an rFMS charging connection state to proto.

func ChargingDevice

func ChargingDevice(input string) rfmsv5.ChargingDevice

ChargingDevice converts an rFMS charging device to proto.

func ChargingState

func ChargingState(input string) rfmsv5.ChargingState

ChargingState converts an rFMS charging state to proto.

func Date

func Date(year, month, day *int32) *rfmsv5.Date

Date converts an rFMS date to proto.

func DoorEnabledState

func DoorEnabledState(input string) rfmsv5.VehicleStatus_Door_EnabledState

DoorEnabledState converts an rFMS door enabled state to proto.

func DoorLockState

func DoorLockState(input string) rfmsv5.VehicleStatus_Door_LockState

DoorLockState converts an rFMS door lock state to proto.

func DoorOpenState

func DoorOpenState(input string) rfmsv5.VehicleStatus_Door_OpenState

DoorOpenState converts an rFMS bus door open state to proto.

func DriverWorkingState

func DriverWorkingState(input string) rfmsv5.DriverWorkingState

DriverWorkingState converts an rFMS driver working state to proto.

func EmissionLevel added in v0.10.0

func EmissionLevel(input string) rfmsv5.EmissionLevel

EmissionLevel converts an rFMS emission level to proto.

func FuelType

func FuelType(input string) rfmsv5.FuelType

FuelType converts an rFMS fuel type to proto.

func GearboxType added in v0.10.0

func GearboxType(input string) rfmsv5.GearboxType

GearboxType converts an rFMS gearbox type to proto.

func IgnitionState

func IgnitionState(input string) rfmsv5.IgnitionState

IgnitionState converts an rFMS ignition state to proto.

func StateOfDoors

func StateOfDoors(input string) rfmsv5.VehicleStatus_StateOfDoors

StateOfDoors converts a rFMS state of doors to proto.

func TachographType added in v0.10.0

func TachographType(input string) rfmsv5.TachographType

TachographType converts an rFMS tachograph type to proto.

func TellTaleState

func TellTaleState(input string) rfmsv5.TellTale_State

TellTaleState converts an rFMS tell tale state to proto.

func TellTaleType

func TellTaleType(input string) rfmsv5.TellTale_Type

TellTaleType converts an rFMS tell tale type to proto.

func TrailerType added in v0.11.0

func TrailerType(input string) rfmsv5.Trailer_Type

TrailerType converts an rFMS trailer type to a Trailer_Type enum.

func TriggerContext

func TriggerContext(input string) rfmsv5.Trigger_Context

TriggerContext converts an rFMS trigger context to proto.

func TriggerType

func TriggerType(input string) rfmsv5.Trigger_Type

TriggerType converts an rFMS trigger type to proto.

func VehicleBodyType

func VehicleBodyType(input string) rfmsv5.Vehicle_BodyType

VehicleBodyType converts an rFMS body type to proto.

func VehicleType

func VehicleType(input string) rfmsv5.Vehicle_Type

VehicleType converts an rFMS vehicle type to proto.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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