Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Repositories                  *repository.Repositories
	DecorateTaskHandler           func(taskengine.Handler) taskengine.Handler
	Events                        EventPublisher
	Cache                         cache.Cache
	CacheGate                     *cacheaccess.Gate
	CacheTracker                  *cacheaccess.Tracker
	Storage                       synapse.StorageClient
	Wallet                        synapse.WalletOperator
	Receipts                      wallet.WalletReceiptChecker
	WalletBroadcastTimeout        time.Duration
	WalletReceiptTimeout          time.Duration
	Terminator                    synapse.ServiceTerminator
	Epochs                        synapse.ChainEpochReader
	Observability                 *observability.Service
	UploadSpeedProbe              providerbenchmark.UploadProbe
	UploadSpeedTestAutoScope      string
	UploadSpeedTestRetestInterval time.Duration
	UploadConcurrency             int
	ParkedPieces                  synapse.ParkedPieceChecker
	CommitNonces                  synapse.CommitNonceReader
	EvictionPolicy                cache.EvictionPolicy
	MaxCacheBytes                 int64
	MaxWriteBytes                 int64 // largest single cache write; 0 means no room is kept for it
	LRUHighPercent                int
	LRULowPercent                 int
	AnchorProviderTier            providerselect.Tier
	DefaultCopies                 int

	// CommitMaxPieces, CommitMaxWait and CommitMaxBacklog shape how transferred
	// copies of one data set are registered together.
	CommitMaxPieces           int
	CommitMaxWait             time.Duration
	CommitMaxBacklog          int
	CommitSealOnCachePressure bool
	// LegacyPieceStorageIDLimit is the first data set ID of the deployment's
	// compact piece layout; zero applies no legacy piece limit.
	LegacyPieceStorageIDLimit uint64
	Logger                    *slog.Logger
}

type EntryPoints

type EntryPoints struct {
	AdminReplacement     *taskengine.Messenger
	AdminCopyRetry       *taskengine.Messenger
	BackendCacheEviction *taskengine.Messenger
}

func Register

func Register(registry *taskengine.Registry, service *taskengine.Service, deps Dependencies) (EntryPoints, error)

type EventPublisher

type EventPublisher interface {
	Publish(string, map[string]any)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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