oidc4vptxstore

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxStore

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

TxStore manages profile in mongodb.

func NewTxStore

func NewTxStore(
	ctx context.Context,
	mongoClient *mongodb.Client,
	documentLoader jsonld.DocumentLoader,
	vpTransactionDataTTLSec int32) (*TxStore, error)

NewTxStore creates TxStore.

func (*TxStore) Create

func (p *TxStore) Create(
	pd *presexch.PresentationDefinition,
	profileID, profileVersion string,
	profileTransactionDataTTL int32,
	customScopes []string,
) (oidc4vp.TxID, *oidc4vp.Transaction, error)

Create creates transaction document in a database.

func (*TxStore) Get

func (p *TxStore) Get(strID oidc4vp.TxID) (*oidc4vp.Transaction, error)

Get oidc4vp.Transaction by given strID.

func (*TxStore) Update

func (p *TxStore) Update(update oidc4vp.TransactionUpdate, _ int32) error

Jump to

Keyboard shortcuts

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