models

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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"`
	Source    string    `json:"source"`
}

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"`
	Subject   string         `json:"subject"`
	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"`
	IMEI             string         `json:"imei"`
	Type             DeviceType     `json:"type"`
	ManufacturerName string         `json:"manufacturerName"`
}

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