Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadRequest = errors.New("bad request")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type GraphQLRequest ¶
type GraphQLRequest struct {
Query string `json:"query"`
}
type IdentityAPI ¶
type IdentityAPI interface {
GetVehicleByDeviceAddr(ethAddress common.Address) (*VehicleInfo, error)
}
func NewIdentityAPIService ¶
func NewIdentityAPIService(logger *zerolog.Logger, settings *config.Settings) IdentityAPI
type VehicleDefinition ¶
type VehicleInfo ¶
type VehicleInfo struct { TokenID uint64 `json:"tokenId"` Definition VehicleDefinition `json:"definition"` }
Click to show internal directories.
Click to hide internal directories.