services

package
v0.7.23 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 22 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 {
	GetDeviceDefinitionByID(ctx context.Context, id string) (*p_grpc.GetDeviceDefinitionItemResponse, error)
	DecodeVIN(ctx context.Context, vin string) (*p_grpc.DecodeVinResponse, error)
}

func NewDeviceDefinitionsService added in v0.3.2

func NewDeviceDefinitionsService(settings *config.Settings) 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, ud *pb.UserDevice) (*appmodels.DeviceConfigResponse, error)
}

func NewDeviceTemplateService added in v0.7.1

func NewDeviceTemplateService(database *sql.DB, deviceDefSvc DeviceDefinitionsService, log zerolog.Logger, settings *config.Settings) DeviceTemplateService

type UserDeviceService

type UserDeviceService interface {
	GetUserDeviceServiceByAutoPIUnitID(ctx context.Context, id string) (*appmodels.UserDeviceAutoPIUnit, error)
	GetUserDeviceByVIN(ctx context.Context, vin string) (*pb.UserDevice, error)
	GetUserDeviceByEthAddr(ctx context.Context, ethAddr string) (*pb.UserDevice, error)
	GetRawDeviceData(ctx context.Context, userDeviceID string) (*gdata.RawDeviceDataResponse, error)
	GetUserDevice(ctx context.Context, userDeviceID string) (*pb.UserDevice, error)
}

func NewUserDeviceService

func NewUserDeviceService(settings *config.Settings) UserDeviceService

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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