Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Description ¶
type FunctionProcessor ¶
type FunctionProcessor[T any] struct { F func(task Task[schemaless.Record[T]]) }
func (*FunctionProcessor[T]) Process ¶
func (proc *FunctionProcessor[T]) Process(task Task[schemaless.Record[schema.Schema]]) error
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
func NewInMemoryQueue ¶
type Repository ¶
type Repository interface {
FindingRecords(query schemaless.FindingRecords[schemaless.Record[schema.Schema]]) (schemaless.PageResult[schemaless.Record[schema.Schema]], error)
}
type SQSQueue ¶
type SQSQueue[T any] struct { // contains filtered or unexported fields }
SQSQueue is a queue that uses AWS SQS as a backend.
func NewSQSQueue ¶
type TaskQueue ¶
type TaskQueue struct {
// contains filtered or unexported fields
}
func NewTaskQueue ¶
func NewTaskQueue( desc *Description, queue Queuer[schemaless.Record[schema.Schema]], find Repository, stream *schemaless.AppendLog[schema.Schema], proc Processor[schemaless.Record[schema.Schema]], ) *TaskQueue
Click to show internal directories.
Click to hide internal directories.