gateways

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const IdentityAPIURL = "https://identity-api.dimo.zone/query"

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 {
	QueryIdentityAPIForVehicle(ethAddress common.Address) (*VehicleInfo, error)
}

func NewIdentityAPIService

func NewIdentityAPIService(logger *zerolog.Logger) IdentityAPI

type VehicleDefinition

type VehicleDefinition struct {
	Make  string `json:"make"`
	Model string `json:"model"`
	Year  int    `json:"year"`
}

type VehicleInfo

type VehicleInfo struct {
	TokenID    uint64            `json:"tokenId"`
	Definition VehicleDefinition `json:"definition"`
}

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL