models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 2 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 {
	VIN       string    `json:"vin"`
	Timestamp time.Time `json:"timestamp"`
}

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 FingerprintMessage

type FingerprintMessage struct {
	Timestamp time.Time      `json:"time"`
	Data      map[string]any `json:"data"`
	Data64    *string        `json:"data_base64"`
}

FingerprintMessage represents the fingerprint message containing VIN and timestamp.

type PairedDevice

type PairedDevice struct {
	Address common.Address `json:"address"`
	Type    DeviceType     `json:"type"`
}

PairedDevice represents a device paired with a token.

type VehicleInfo

type VehicleInfo struct {
	TokenID       uint32
	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