Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New(chConn clickhouse.Conn, objGetter indexrepo.ObjectGetter, vcBucketName, vinVCDataType, pomVCDataType string, chainID uint64, vehicleAddress common.Address, logger *zerolog.Logger) *Repository
New creates a new instance of Service.
func (*Repository) GetLatestPOMVC ¶
func (r *Repository) GetLatestPOMVC(ctx context.Context, vehicleTokenID uint32) (*model.Pomvc, error)
GetLatestPOMVC fetches the latest POM VC for the given vehicle.
func (*Repository) GetLatestVINVC ¶
func (r *Repository) GetLatestVINVC(ctx context.Context, vehicleTokenID uint32) (*model.Vinvc, error)
GetLatestVINVC fetches the latest VIN VC for the given vehicle.
Click to show internal directories.
Click to hide internal directories.