services

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PIDs    = "pids"
	Setting = "settings"
	DBC     = "dbc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceDefinitionsService added in v0.3.2

type DeviceDefinitionsService interface {
	DecodeVIN(ctx context.Context, vin string) (*pgrpc.DecodeVinResponse, error)
}

func NewDeviceDefinitionsService added in v0.3.2

func NewDeviceDefinitionsService(definitionsConn *grpc.ClientConn) DeviceDefinitionsService

type DeviceTemplateService added in v0.7.1

type DeviceTemplateService interface {
	StoreDeviceConfigUsed(ctx context.Context, address common2.Address, dbcURL, pidURL, settingURL, firmwareVersion string) (*models.DeviceTemplateStatus, error)
	ResolveDeviceConfiguration(c *fiber.Ctx, input *ResolveConfigInput) (*device.ConfigResponse, string, error)
	FindDirectDeviceToTemplateConfig(ctx context.Context, address common2.Address) *device.ConfigResponse
}

func NewDeviceTemplateService added in v0.7.1

func NewDeviceTemplateService(database *sql.DB, log zerolog.Logger, settings *config.Settings, identityAPI gateways.IdentityAPI) DeviceTemplateService

type ResolveConfigInput added in v0.13.0

type ResolveConfigInput struct {
	DefinitionID   string
	CANProtocol    string
	PowerTrainType string
	Vehicle        *gateways.VehicleInfo
}

ResolveConfigInput carries only what template resolution needs; decoupled from devices-api pb.UserDevice.

Directories

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

Jump to

Keyboard shortcuts

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