devicelib

package
v0.0.0-...-9bee2a0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFirestoreDeviceByDeviceID

func DeleteFirestoreDeviceByDeviceID(
	ctx context.Context,
	firestoreClient *firestore.Client,
	associationID string,
	deviceID string,
) error

func StoreDevice

func StoreDevice(
	ctx context.Context,
	firestoreClient *firestore.Client,
	associationID string,
	raceHubID string,
	deviceID string,
	clientID string,
	authedAt time.Time,
) error

Types

type Device

type Device struct {
	HubID    string
	ClientID string
	AuthedAt time.Time
}

func FetchLatestDeviceByDeviceID

func FetchLatestDeviceByDeviceID(
	ctx context.Context,
	firestoreClient *firestore.Client,
	associationID string,
	deviceID string,
) (*Device, error)

Jump to

Keyboard shortcuts

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