Documentation ¶
Index ¶
Constants ¶
View Source
const TokenPrefix = "V"
TokenPrefix is the prefix for a global token id for vehicles.
Variables ¶
This section is empty.
Functions ¶
func DefaultImageURI ¶ added in v0.1.26
DefaultImageURI craates a URL for the vehicle image.
func GetVehicleDataURI ¶ added in v0.1.24
Types ¶
type Repository ¶
type Repository struct {
*base.Repository
}
func (*Repository) GetVehicle ¶
func (*Repository) GetVehicles ¶
func (r *Repository) GetVehicles(ctx context.Context, first *int, after *string, last *int, before *string, filterBy *gmodel.VehiclesFilter) (*gmodel.VehicleConnection, error)
GetVehicles godoc @Description gets devices for an owner address @Param addr common.Address "eth address of owner" @Param first [*int] "the number of devices to return per page" @Param after [*string] "base64 string representing a device tokenID. This is a pointer to where we start fetching devices from on each page" @Param last [*int] "the number of devices to return from previous pages" @Param before [*string] "base64 string representing a device tokenID. Pointer to where we start fetching devices from previous pages"
Click to show internal directories.
Click to hide internal directories.