task

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StateKey is default key in state store
	StateKey                   = "state"
	DefaultSyncStateIntervalMS = 10000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultTask

type DefaultTask struct {
	ID string
	// contains filtered or unexported fields
}

func (*DefaultTask) GetID

func (t *DefaultTask) GetID() string

func (*DefaultTask) Start

func (t *DefaultTask) Start() (err error)

func (*DefaultTask) Stop

func (t *DefaultTask) Stop()

type Task

type Task interface {
	// GetID returns the id of the task.
	GetID() string

	// Start starts the task and blocks until task finished or error thrown.
	Start() error

	// Stop stops the task and blocks until stopped.
	Stop()
}

Task is the runnable instance to do all ETL tasks.

func NewTask

func NewTask(config core.StringMap) Task

func NewTaskFromJson

func NewTaskFromJson(path string) (Task, error)

Jump to

Keyboard shortcuts

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