vcrepo

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

Repo manages storing and retrieving VCs.

func New

func New(chConn clickhouse.Conn, objGetter service.ObjectGetter, bucketName, vinvcDataType string) *Repo

New creates a new instance of VCRepo.

func (*Repo) GetLatestVINVC

func (r *Repo) GetLatestVINVC(ctx context.Context, vehicleTokenID uint32) (*verifiable.Credential, error)

GetLatestVINVC fetches the latest vinvc from S3.

func (*Repo) StoreVINVC

func (r *Repo) StoreVINVC(ctx context.Context, vehicleTokenID uint32, rawVC json.RawMessage) error

StoreVINVC stores a new VC in S3.

Jump to

Keyboard shortcuts

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