inmemorydb

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() dbrepo.Repository

Types

type InMemoryRepository

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

func (*InMemoryRepository) AddAuthRequest

func (r *InMemoryRepository) AddAuthRequest(ctx context.Context, ar *entity.AuthRequest) error

func (*InMemoryRepository) Close

func (r *InMemoryRepository) Close()

func (*InMemoryRepository) DeleteAuthRequestByState

func (r *InMemoryRepository) DeleteAuthRequestByState(ctx context.Context, state string) error

func (*InMemoryRepository) GetAuthRequestByState

func (r *InMemoryRepository) GetAuthRequestByState(ctx context.Context, state string) (*entity.AuthRequest, error)

func (*InMemoryRepository) Open

func (r *InMemoryRepository) Open() error

func (*InMemoryRepository) PruneAuthRequests

func (r *InMemoryRepository) PruneAuthRequests(ctx context.Context) (uint, error)

Jump to

Keyboard shortcuts

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