identity

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package identity provides functionality to interact with the identity GraphQL API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	SyntheticAddr common.Address
	// contains filtered or unexported fields
}

Service interacts with the identity GraphQL API.

func NewService

func NewService(apiBaseURL string, aftermarketAddr, SyntheticAddr string, certPool *x509.CertPool) (*Service, error)

NewService creates a new instance of Service with optional TLS certificate pool.

func (*Service) GetVehicleInfo

func (s *Service) GetVehicleInfo(ctx context.Context, vehicleDID cloudevent.NFTDID) (*models.VehicleInfo, error)

GetVehicleInfo fetches vehicle information from the identity API.

Jump to

Keyboard shortcuts

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