tasks

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 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       uuid.UUID     `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(time.Time, time.Duration, DT) error
}

func Init

func Init[DT any](s stream.Stream, dataTypeName, dataTypeVersion string, p stream.CryptoKeyProvider, execute func(DT) bool, 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