assemble

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	BatchSize               int
	ClaimOwner              string
	ClaimLease              time.Duration
	Concurrency             int
	MaxYEncRecoveryAttempts int
}

type Service

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

func NewService

func NewService(repo repository, matcher subjectMatcher, fetcher articleFetcher, log logger, opts Options) *Service

func (*Service) RunOnce

func (s *Service) RunOnce(ctx context.Context) error

RunOnce assembles one batch of article headers into binaries + binary_parts.

func (*Service) RunOnceWithMetrics added in v0.7.0

func (s *Service) RunOnceWithMetrics(ctx context.Context) (map[string]any, error)

Jump to

Keyboard shortcuts

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