gateways

package
v0.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadRequest = errors.New("bad request")
View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type IdentityAPI

type IdentityAPI interface {
	GetManufacturer(slug string) (*coremodels.Manufacturer, error)
	GetDefinition(definitionID string) (*coremodels.DeviceDefinition, error)
	GetVehicle(tokenID uint64) (*coremodels.Vehicle, error)
}

func NewIdentityAPIService

func NewIdentityAPIService(logger *zerolog.Logger, settings *config.Settings) IdentityAPI

NewIdentityAPIService creates a new instance of IdentityAPI, initializing it with the provided logger, settings, and HTTP client. httpClient is used for testing really

type TelemetryAPI

type TelemetryAPI interface {
	GetLatestSignals(tokenID uint64, authHeader string) (*coremodels.SignalsLatest, error)
	GetVinVC(tokenID uint64, authHeader string) (*coremodels.VinVCLatest, error)
}

func NewTelemetryAPI

func NewTelemetryAPI(logger *zerolog.Logger, settings *config.Settings) TelemetryAPI

Directories

Path Synopsis
Package mock_gateways is a generated GoMock package.
Package mock_gateways is a generated GoMock package.

Jump to

Keyboard shortcuts

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