Documentation ¶
Index ¶
Constants ¶
View Source
const TokenPrefix = "DD"
TokenPrefix is the prefix for a global token id for Device Definition.
Variables ¶
This section is empty.
Functions ¶
func ToAPI ¶
func ToAPI(v *DeviceDefinitionTablelandModel) (*gmodel.DeviceDefinition, error)
Types ¶
type DeviceDefinitionTablelandCountModel ¶
type DeviceDefinitionTablelandCountModel struct {
Count int `json:"count(*)"`
}
type DeviceDefinitionTablelandModel ¶
type DeviceDefinitionTablelandModel struct { ID string `json:"id"` KSUID string `json:"ksuid"` Model string `json:"model"` Year int `json:"year"` DeviceType string `json:"devicetype"` ImageURI string `json:"imageuri"` Metadata struct { DeviceAttributes []struct { Name string `json:"name"` Value string `json:"value"` } `json:"device_attributes"` } `json:"metadata"` }
type Repository ¶
type Repository struct { *base.Repository TablelandApiService *services.TablelandApiService }
func (*Repository) GetDeviceDefinition ¶
func (r *Repository) GetDeviceDefinition(ctx context.Context, by gmodel.DeviceDefinitionBy) (*gmodel.DeviceDefinition, error)
func (*Repository) GetDeviceDefinitions ¶
func (r *Repository) GetDeviceDefinitions(ctx context.Context, tableID, first *int, after *string, last *int, before *string, filterBy *gmodel.DeviceDefinitionFilter) (*gmodel.DeviceDefinitionConnection, error)
Click to show internal directories.
Click to hide internal directories.