oidc4cinoncestore

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store stores oidc transactions in redis.

func New

func New(redisClient *redis.Client, ttlSec int32) *Store

New creates Store.

func (*Store) Create

func (s *Store) Create(
	ctx context.Context,
	transactionData *oidc4ci.TransactionData,
	params ...func(insertOptions *oidc4ci.InsertOptions),
) (*oidc4ci.Transaction, error)

func (*Store) FindByOpState

func (s *Store) FindByOpState(ctx context.Context, opState string) (*oidc4ci.Transaction, error)

func (*Store) Get

func (s *Store) Get(
	ctx context.Context,
	txID oidc4ci.TxID,
) (*oidc4ci.Transaction, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, tx *oidc4ci.Transaction) error

Jump to

Keyboard shortcuts

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