identity

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(url string, timeout int) *APIClient

func (*APIClient) GetAftermarketDevice

func (i *APIClient) GetAftermarketDevice(ctx context.Context, address *common.Address, tokenID *int, serial *string) (*DeviceInfos, error)

type AftermarketDeviceBy

type AftermarketDeviceBy struct {
	TokenId *int            `json:"tokenId"`
	Address *common.Address `json:"address"`
	Serial  *string         `json:"serial"`
}

The AftermarketDeviceBy input is used to specify a unique aftermarket device to query.

func (*AftermarketDeviceBy) GetAddress

func (v *AftermarketDeviceBy) GetAddress() *common.Address

GetAddress returns AftermarketDeviceBy.Address, and is useful for accessing the field via an interface.

func (*AftermarketDeviceBy) GetSerial

func (v *AftermarketDeviceBy) GetSerial() *string

GetSerial returns AftermarketDeviceBy.Serial, and is useful for accessing the field via an interface.

func (*AftermarketDeviceBy) GetTokenId

func (v *AftermarketDeviceBy) GetTokenId() *int

GetTokenId returns AftermarketDeviceBy.TokenId, and is useful for accessing the field via an interface.

type DeviceInfos

type DeviceInfos struct {
	ManufacturerTokenID      int
	VehicleTokenID           int
	AftermarketDeviceTokenID int
	ManufacturerName         string
}

Jump to

Keyboard shortcuts

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