adapter

package
v1.0.0-beta.217 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) (progressmanager.Adapter, error)

func NewNoop

func NewNoop() progressmanager.Adapter

NewNoop creates a no-operation adapter that implements the progressmanager.Adapter interface but performs no actual operations. This is useful for testing or when progress tracking is disabled.

Types

type Config

type Config struct {
	Expiration time.Duration
	Redis      *redis.Client
	Logger     *slog.Logger
}

func (Config) Validate

func (c Config) Validate() error

type MockProgressManager

type MockProgressManager struct {
	mock.Mock
}

MockProgressManager is a mock for the ProgressManager

func NewMockProgressManager

func NewMockProgressManager() *MockProgressManager

func (*MockProgressManager) DeleteProgressByRuntimeID

func (m *MockProgressManager) DeleteProgressByRuntimeID(ctx context.Context, runtimeID string) error

func (*MockProgressManager) UpsertProgress

Jump to

Keyboard shortcuts

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