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) (*pgrpc.GetDeviceDefinitionItemResponse, error) 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, ud *pb.UserDevice, vehicle *gateways.VehicleInfo) (*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, deviceDefSvc DeviceDefinitionsService, log zerolog.Logger, settings *config.Settings, identityAPI gateways.IdentityAPI) DeviceTemplateService
type UserDevicesService ¶ added in v0.10.9
type UserDevicesService interface { GetUserDeviceByAutoPIUnitID(ctx context.Context, id string) (*appmodels.UserDeviceAutoPIUnit, error) GetUserDeviceByVIN(ctx context.Context, vin string) (*pb.UserDevice, error) GetUserDeviceByEthAddr(ctx context.Context, address common2.Address) (*pb.UserDevice, error) GetUserDevice(ctx context.Context, userDeviceID string) (*pb.UserDevice, error) }
func NewUserDevicesService ¶ added in v0.10.9
func NewUserDevicesService(devicesGrpcConn *grpc.ClientConn) UserDevicesService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.