storage

package
v0.0.0-...-6cca866 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerStorage

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

func NewBadgerStorage

func NewBadgerStorage(dbPath string,
	ttl time.Duration,
	gcCron *cron.Cron,
	log *slog.Logger,
) (*BadgerStorage, error)

func (*BadgerStorage) Close

func (b *BadgerStorage) Close() error

func (*BadgerStorage) CommitTransaction

func (b *BadgerStorage) CommitTransaction(ctx context.Context) error

func (*BadgerStorage) DeleteScheduledRun

func (b *BadgerStorage) DeleteScheduledRun(ctx context.Context, name string) error

func (*BadgerStorage) InsertScheduledRun

func (b *BadgerStorage) InsertScheduledRun(ctx context.Context, sr model.ScheduledRun) error

func (*BadgerStorage) InsertTestSuiteRun

func (b *BadgerStorage) InsertTestSuiteRun(ctx context.Context, tsr model.TestSuiteRun) (int, error)

func (*BadgerStorage) LoadPendingTestSuiteRuns

func (b *BadgerStorage) LoadPendingTestSuiteRuns(ctx context.Context) ([]model.TestSuiteRun, error)

func (*BadgerStorage) LoadTestSuiteRun

func (b *BadgerStorage) LoadTestSuiteRun(ctx context.Context, suiteName string, runID int) (model.TestSuiteRun, error)

func (*BadgerStorage) LoadTestSuiteRunsByName

func (b *BadgerStorage) LoadTestSuiteRunsByName(ctx context.Context, suiteName string) ([]model.TestSuiteRun, error)

func (*BadgerStorage) RollbackTransaction

func (b *BadgerStorage) RollbackTransaction(ctx context.Context)

func (*BadgerStorage) StartTransaction

func (b *BadgerStorage) StartTransaction(ctx context.Context) (context.Context, error)

func (*BadgerStorage) UpdateTestSuiteRun

func (b *BadgerStorage) UpdateTestSuiteRun(ctx context.Context, tsr model.TestSuiteRun) error

type BadgerStorageContextKey

type BadgerStorageContextKey string

Jump to

Keyboard shortcuts

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