tasks

package
v0.18.8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const NoInterval time.Duration = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskMetadata

type TaskMetadata struct {
	Id       string        `json:"id"`
	After    time.Time     `json:"after"`
	Interval time.Duration `json:"interval"`
}

TaskMetadata temp changed task to be the id that is used for strong and id seems to now only be used for events.

type Tasks

type Tasks[DT any] interface {
	Create(string, time.Time, time.Duration, DT) error
	Tasks() (tasks []TaskMetadata)
}

func Init

func Init[DT any](s stream.Stream, consBuilder consensus.ConsBuilderFunc, dataTypeName, dataTypeVersion string, p stream.CryptoKeyProvider, execute func(DT, context.Context) bool, timeout time.Duration, skipable bool, workers int, ctx context.Context) (ed Tasks[DT], err error)

Jump to

Keyboard shortcuts

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