Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceAPIService ¶
type DeviceAPIService interface { ListUserDevicesForUser(ctx context.Context, userID string) (*pb.ListUserDevicesForUserResponse, error) GetUserDevice(ctx context.Context, userDeviceID string) (*pb.UserDevice, error) UserDeviceBelongsToUserID(ctx context.Context, userID, userDeviceID string) (bool, error) }
func NewDeviceAPIService ¶
func NewDeviceAPIService(devicesAPIGRPCAddr string) DeviceAPIService
NewDeviceAPIService API wrapper to call device-data-api to get the userDevices associated with a userId over grpc
type UserDeviceFull ¶
type UserDeviceFull struct { ID string `json:"id"` VIN *string `json:"vin"` VINConfirmed bool `json:"vinConfirmed"` Name *string `json:"name"` CustomImageURL *string `json:"customImageUrl"` CountryCode *string `json:"countryCode"` }
UserDeviceFull represents object user's see on frontend for listing of their devices
Click to show internal directories.
Click to hide internal directories.