Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateVIN ¶ added in v1.2.17
Types ¶
type PowerTrainTypeService ¶ added in v1.0.14
type PowerTrainTypeService interface {
ResolvePowerTrainType(makeSlug string, modelSlug string, drivlyData null.JSON, vincarioData null.JSON) (string, error)
ResolvePowerTrainFromVinInfo(styleName, fuelType string) string
}
func NewPowerTrainTypeService ¶ added in v1.0.14
func NewPowerTrainTypeService(rulesFileName string, logger *zerolog.Logger, ddOnChainSvc gateways.DeviceDefinitionOnChainService) (PowerTrainTypeService, error)
type VINDecodingService ¶ added in v0.7.9
type VINDecodingService interface {
// GetVIN decodes a vin using one of the providers passed in or if AllProviders applies an ordered logic. Only pass TeslaProvider if know it is a Tesla.
GetVIN(ctx context.Context, vin string, dt *repoModel.DeviceType, provider coremodels.DecodeProviderEnum, country string) (*coremodels.VINDecodingInfoData, error)
}
func NewVINDecodingService ¶ added in v0.7.9
func NewVINDecodingService(drivlyAPISvc gateways.DrivlyAPIService, vincarioAPISvc gateways.VincarioAPIService, autoIso gateways.AutoIsoAPIService, logger *zerolog.Logger, onChainSvc gateways.DeviceDefinitionOnChainService, datGroupAPIService gateways.DATGroupAPIService, dbs func() *db.ReaderWriter, japan17VINAPI gateways.Japan17VINAPI) VINDecodingService
Click to show internal directories.
Click to hide internal directories.