spooler

package
v1.83.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(event *models.Event, failedErr error,
	latestFailedEvent func(sequence uint64) (*repository.FailedEvent, error),
	processFailedEvent func(*repository.FailedEvent) error,
	processSequence func(*models.Event) error,
	errorCountUntilSkip uint64) error

func HandleSuccess

func HandleSuccess(updateSpoolerRunTimestamp func() error) error

Types

type Config

type Config struct {
	Eventstore        v1.Eventstore
	Locker            Locker
	ViewHandlers      []query.Handler
	ConcurrentWorkers int
}

func (*Config) New

func (c *Config) New() *Spooler

type Locker

type Locker interface {
	Renew(lockerID, viewModel string, waitTime time.Duration) error
}

type Spooler

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

func (*Spooler) Start

func (s *Spooler) Start()

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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