Documentation
¶
Overview ¶
Package tesla handles incoming Tesla messages, both from polling the Fleet API and streaming from Fleet Telemetry.
Index ¶
- type Module
- func (m Module) CloudEventConvert(_ context.Context, msgData []byte) ([]cloudevent.CloudEventHeader, []byte, error)
- func (m *Module) FingerprintConvert(_ context.Context, event cloudevent.RawEvent) (cloudevent.Fingerprint, error)
- func (m *Module) SignalConvert(_ context.Context, event cloudevent.RawEvent) ([]vss.Signal, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶ added in v0.5.0
type Module struct{}
Module holds dependencies for the Tesla module. At present, there are none. All of the functions on this struct delegate to the appropriate function in the api and telemetry submodules, according to the dataversion field.
func (Module) CloudEventConvert ¶ added in v0.5.0
func (m Module) CloudEventConvert(_ context.Context, msgData []byte) ([]cloudevent.CloudEventHeader, []byte, error)
CloudEventConvert converts an input message to Cloud Events. In the Tesla case the input messages always consist of signal values and include the VIN, so we want to create a fingerprint header pointing to the same data.
func (*Module) FingerprintConvert ¶ added in v0.5.0
func (m *Module) FingerprintConvert(_ context.Context, event cloudevent.RawEvent) (cloudevent.Fingerprint, error)
FingerprintConvert converts a Tesla CloudEvent to a FingerprintEvent.
func (*Module) SignalConvert ¶ added in v0.5.0
SignalConvert converts a Tesla CloudEvent to DIMO's VSS rows.
Directories
¶
| Path | Synopsis |
|---|---|
|
Code generated by github.com/DIMO-Network/model-garage.
|
Code generated by github.com/DIMO-Network/model-garage. |
|
Package telemetry converts batches of Tesla protobuf Payloads into VSS signals.
|
Package telemetry converts batches of Tesla protobuf Payloads into VSS signals. |