data

package
v0.0.0-...-f236415 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 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 AtomicFunc

type AtomicFunc func(txCtx context.Context, tx *database.Tx) error

type Store

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

func NewStore

func NewStore(driver *database.Driver, name string, cfg *config.GeneralConfig) *Store

func (*Store) ActiveIntegrityContext

func (s *Store) ActiveIntegrityContext(ctx context.Context) (domain.IntegrityContext, error)

func (*Store) Atomic

func (s *Store) Atomic(ctx context.Context, atomics ...AtomicFunc) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) CreateUserSession

func (s *Store) CreateUserSession(ctx context.Context, request *domain.UserSessionRequest) (*domain.UserSession, error)

func (*Store) CreateUserSessionRequest

func (s *Store) CreateUserSessionRequest(ctx context.Context, handler, loginHint string, strongVerification bool, demoUser *domain.User) (*domain.UserSessionRequest, error)

func (*Store) CurrentTx

func (s *Store) CurrentTx(ctx context.Context) (*database.Tx, bool)

func (*Store) GetUserSession

func (s *Store) GetUserSession(ctx context.Context, id string) (*domain.UserSession, error)

func (*Store) GetUserSessionRequest

func (s *Store) GetUserSessionRequest(ctx context.Context, id string) (*domain.UserSessionRequest, error)

func (*Store) LookupIntegrityContext

func (s *Store) LookupIntegrityContext(ctx context.Context, keyID string) (domain.IntegrityContext, error)

func (*Store) Ping

func (s *Store) Ping(ctx context.Context) error

func (*Store) UpdateUserSession

func (s *Store) UpdateUserSession(ctx context.Context, session *domain.UserSession) error

func (*Store) UpdateUserSessionRequest

func (s *Store) UpdateUserSessionRequest(ctx context.Context, request *domain.UserSessionRequest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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