reader

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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

	//根据Job进行切分,将原有任务切分成number个任务,主要以配置文件的形式传递给每个任务
	Split(ctx context.Context, number int) ([]*config.JSON, error)
}

Job 工作

type Task

type Task interface {
	plugin.Task

	//StartRead 开始从sender中读取
	StartRead(ctx context.Context, sender plugin.RecordSender) error
}

Task 任务

Jump to

Keyboard shortcuts

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