invalid

package
v0.0.0-...-a7567a8 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBatchSize = 100
View Source
const DefaultConcurrency = 10
View Source
const DefaultFailedTaskDelay = time.Second * 10
View Source
const DefaultNoTasksDelay = time.Second * 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Concurrency     uint64
	BatchSize       uint64
	NoTasksDelay    *time.Duration
	FailedTaskDelay *time.Duration
}

type Processor

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

func NewProcessor

func NewProcessor(
	invalidQueue *queue.Queue[*responses.Accrual],
	orderManager orderManager,
	config *Config,
) *Processor

func (*Processor) Process

func (processor *Processor) Process(ctx context.Context) error

Jump to

Keyboard shortcuts

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