Documentation
¶
Index ¶
- Constants
- Variables
- func BuildDeviceTypeAttributesTbland(attributes []*grpc.DeviceTypeAttributeRequest) string
- func GetDefaultImageURL(ctx context.Context, definitionID string, db2 *sql.DB) string
- func GetDeviceAttributesTyped(metadata null.JSON, key string) []coremodels.DeviceTypeAttribute
- func NewKeyedTransactorWithChainID(context context.Context, send sender.Sender, chainID *big.Int) (*bind.TransactOpts, error)
- type AutoIsoAPIService
- type CarVxVINAPI
- type DATGroupAPIService
- type DeviceDefinitionOnChainService
- type DrivlyAPIService
- type ElevaAPI
- type ElevaConfig
- type FuelAPIService
- type FuelDeviceImages
- type FuelImage
- type GraphQLRequest
- type IdentityAPI
- type Japan17VINAPI
- type VincarioAPIService
Constants ¶
View Source
const ( TablelandRequests = "Tableland_All_Request" TablelandFindByID = "Tableland_FindByID_Request" TablelandCreated = "Tableland_Created_Request" TablelandUpdated = "Tableland_Updated_Request" TablelandDeleted = "Tableland_Deleted_Request" TablelandExists = "Tableland_Exists_Request" TablelandErrors = "Tableland_Error_Request" )
Variables ¶
View Source
var ErrBadRequest = errors.New("bad request")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func BuildDeviceTypeAttributesTbland ¶ added in v1.2.45
func BuildDeviceTypeAttributesTbland(attributes []*grpc.DeviceTypeAttributeRequest) string
BuildDeviceTypeAttributesTbland converts a list of DeviceTypeAttributeRequest to a JSON string for the given device type ID. It works the same as BuildDeviceTypeAttributes but the metadatakey is always "device_attributes" and does no attribute name validation
func GetDefaultImageURL ¶ added in v1.1.7
func GetDeviceAttributesTyped ¶ added in v1.1.1
func GetDeviceAttributesTyped(metadata null.JSON, key string) []coremodels.DeviceTypeAttribute
Types ¶
type AutoIsoAPIService ¶ added in v1.0.32
type AutoIsoAPIService interface {
GetVIN(vin string) (*coremodels.AutoIsoVINResponse, []byte, error)
}
func NewAutoIsoAPIService ¶ added in v1.0.32
func NewAutoIsoAPIService(autoIsoAPIUid, autoIsoAPIKey string) AutoIsoAPIService
type CarVxVINAPI ¶ added in v1.4.9
type CarVxVINAPI interface {
GetVINInfo(chassisNumber string) (*coremodels.CarVxResponse, []byte, error)
}
func NewCarVxVINAPI ¶ added in v1.4.9
func NewCarVxVINAPI(logger *zerolog.Logger, settings *config.Settings) CarVxVINAPI
type DATGroupAPIService ¶ added in v1.1.0
type DATGroupAPIService interface {
GetVINv2(vin string) (*coremodels.DATGroupInfoResponse, []byte, error)
}
func NewDATGroupAPIService ¶ added in v1.1.0
func NewDATGroupAPIService(settings *config.Settings, logger *zerolog.Logger) DATGroupAPIService
type DeviceDefinitionOnChainService ¶ added in v1.1.1
type DeviceDefinitionOnChainService interface {
GetManufacturer(manufacturerSlug string) (*coremodels.Manufacturer, error)
GetManufacturerNameByID(ctx context.Context, manufacturerID *big.Int) (string, error)
// GetDeviceDefinitionByID get DD from tableland by slug ID and specifying the manufacturer for the table to lookup in
GetDeviceDefinitionByID(ctx context.Context, manufacturerID *big.Int, ID string) (*coremodels.DeviceDefinitionTablelandModel, error)
// GetDefinitionByID get DD from tableland by slug ID, automatically figures out table by oem portion of slug. returns the manufacturer token id too
GetDefinitionByID(ctx context.Context, ID string) (*coremodels.DeviceDefinitionTablelandModel, *big.Int, error)
GetDefinitionTableland(ctx context.Context, manufacturerID *big.Int, ID string) (*coremodels.DeviceDefinitionTablelandModel, error)
GetDeviceDefinitions(ctx context.Context, manufacturerID types.NullDecimal, ID string, model string, year int, pageIndex, pageSize int32) ([]coremodels.DeviceDefinitionTablelandModel, error)
Create(ctx context.Context, manufacturerName string, dd coremodels.DeviceDefinitionTablelandModel) (*string, error)
Update(ctx context.Context, manufacturerName string, input contracts.DeviceDefinitionUpdateInput) (*string, error)
Delete(ctx context.Context, manufacturerName, id string) (*string, error)
QueryDefinitionsCustom(ctx context.Context, manufacturerID int, whereClause string, pageIndex int) ([]coremodels.DeviceDefinitionTablelandModel, error)
}
func NewDeviceDefinitionOnChainService ¶ added in v1.1.1
type DrivlyAPIService ¶ added in v0.6.8
type DrivlyAPIService interface {
GetVINInfo(vin string) (*coremodels.DrivlyVINResponse, []byte, error)
}
func NewDrivlyAPIService ¶ added in v0.6.8
func NewDrivlyAPIService(settings *config.Settings) DrivlyAPIService
type ElevaAPI ¶ added in v1.5.6
type ElevaAPI interface {
GetVINInfo(vin string) (*coremodels.ElevaVINResponse, error)
}
func NewElevaAPI ¶ added in v1.5.6
type ElevaConfig ¶ added in v1.5.6
type FuelAPIService ¶ added in v0.9.8
type FuelAPIService interface {
FetchDeviceImages(mk, mdl string, yr int, prodID int, prodFormat int) (FuelDeviceImages, error)
}
func NewFuelAPIService ¶ added in v0.9.8
func NewFuelAPIService(settings *config.Settings, logger *zerolog.Logger) FuelAPIService
type FuelDeviceImages ¶ added in v0.9.8
type FuelDeviceImages struct {
FuelAPIID string `boil:"fuelID"`
Width int `boil:"width"`
Height int `boil:"height"`
Angle string `boil:"angle"`
Images []FuelImage `boil:"images"`
// use to track if we used a different year image and could not find this one
NotExactImage bool
// contains filtered or unexported fields
}
type GraphQLRequest ¶ added in v1.2.75
type GraphQLRequest struct {
Query string `json:"query"`
}
type IdentityAPI ¶ added in v1.2.75
type IdentityAPI interface {
GetManufacturer(slug string) (*coremodels.Manufacturer, error)
GetManufacturers() ([]coremodels.Manufacturer, error)
}
func NewIdentityAPIService ¶ added in v1.2.75
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 Japan17VINAPI ¶ added in v1.2.96
type Japan17VINAPI interface {
GetVINInfo(vin string) (*coremodels.Japan17MMY, []byte, error)
}
func NewJapan17VINAPI ¶ added in v1.2.96
func NewJapan17VINAPI(logger *zerolog.Logger, settings *config.Settings) Japan17VINAPI
type VincarioAPIService ¶ added in v0.7.9
type VincarioAPIService interface {
DecodeVIN(vin string) (*coremodels.VincarioInfoResponse, []byte, error)
}
func NewVincarioAPIService ¶ added in v0.7.9
func NewVincarioAPIService(settings *config.Settings, log *zerolog.Logger) VincarioAPIService
Source Files
¶
Click to show internal directories.
Click to hide internal directories.