oidc4vptxstore

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 11 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 redis.

func NewTxStore

func NewTxStore(
	redisClient *redis.Client,
	documentLoader jsonld.DocumentLoader,
	vpTransactionDataTTLSec int32) *TxStore

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) Delete added in v1.11.0

func (p *TxStore) Delete(strID oidc4vp.TxID) error

Delete deletes oidc4vp.Transaction from store.

func (*TxStore) Get

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

Get returns oidc4vp.Transaction by given id.

func (*TxStore) Update

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

Jump to

Keyboard shortcuts

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