maintenance

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStore

type EventStore interface {
	Insert(ctx context.Context, task Task) error
	Query(ctx context.Context, limit int, taskHandler TaskHandler) error
	Remove(ctx context.Context, task Task) error
}

EventStore provides interface over the maintenance functionality for an event store

type Iter

type Iter interface {
	Next(ctx context.Context, task *Task) bool
	Err() error
}

Iter provides iterator over maintenance db records

type Task

type Task struct {
	GroupID     string
	AggregateID string
	Version     uint64
}

Task used to target a specific db record

type TaskHandler

type TaskHandler interface {
	Handle(ctx context.Context, iter Iter) (err error)
}

TaskHandler handles the maintenance db queries

Jump to

Keyboard shortcuts

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