adapter

package
v1.0.0-beta.201 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 10 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

Jump to

Keyboard shortcuts

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