reader

package
v0.0.0-...-780ac92 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	plugin.Job

	// Split the existing task into a number of tasks based on the Job, and pass them to each task mainly in the form of a configuration file.
	Split(ctx context.Context, number int) ([]*config.JSON, error)
}

Job: a unit of work

type Task

type Task interface {
	plugin.Task

	// StartRead - Begins reading from the sender
	StartRead(ctx context.Context, sender plugin.RecordSender) error
}

Task - Represents a task to be performed

Jump to

Keyboard shortcuts

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