models

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodedFingerprintData

type DecodedFingerprintData struct {
	cloudevent.CloudEventHeader
	VIN string `json:"vin"`
}

DecodedFingerprintData represents the decoded fingerprint data.

type DeviceType

type DeviceType string

DeviceType represents the type of device.

const (
	// DeviceTypeAftermarket represents an aftermarket device.
	DeviceTypeAftermarket DeviceType = "aftermarket"
	// DeviceTypeSynthetic represents a synthetic device.
	DeviceTypeSynthetic DeviceType = "synthetic"
)

type PairedDevice

type PairedDevice struct {
	DID              cloudevent.NFTDID `json:"nftDid"`
	Type             DeviceType        `json:"type"`
	ManufacturerName string            `json:"manufacturerName"`

	// TODO remove legacy lookup fields once ingest is updated
	Address string `json:"address"`
	IMEI    string `json:"imei"`
}

PairedDevice represents a device paired with a token.

type VehicleInfo

type VehicleInfo struct {
	DID           cloudevent.NFTDID
	PairedDevices []PairedDevice
	NameSlug      string
}

VehicleInfo contains information about a vehicle NFT.

Jump to

Keyboard shortcuts

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