task

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDERs = errors.New("received empty DER array")
)

Functions

This section is empty.

Types

type Task

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

func NewTask

func NewTask(payload []byte) Task

func (*Task) Execute

func (t *Task) Execute(workerId int) (*outcome.Outcome, error)

func (*Task) LogFields

func (t *Task) LogFields() []any

type TaskPool

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

func NewTaskPool

func NewTaskPool(
	ctx context.Context,
	cfg *config.Pool,
	dest destination.Destination,
	log *slog.Logger,
) *TaskPool

func (*TaskPool) LogFields

func (tp *TaskPool) LogFields() []any

func (*TaskPool) Start

func (tp *TaskPool) Start(ctx context.Context)

func (*TaskPool) Submit

func (tp *TaskPool) Submit(t any)

func (*TaskPool) Wait

func (tp *TaskPool) Wait()

Jump to

Keyboard shortcuts

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