task

package
v0.6.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseTask

type BaseTask struct {
	// IDer
	ID   string
	UUID uuid.UUID

	// cue bookkeeping
	CueTask *cueflow.Task
	Node    *hof.Node[any]
	Orig    cue.Value
	Start   cue.Value
	Final   cue.Value
	Error   error

	// stats & timing
	// should this be a list with names / times
	// timing
	// replace with open telemetry
	TimeEvents map[string]time.Time
}

func NewBaseTask

func NewBaseTask(node *hof.Node[any]) *BaseTask

func (*BaseTask) AddTimeEvent

func (T *BaseTask) AddTimeEvent(key string)

type Eventer

type Eventer interface {
	EmitEvent(key string, data interface{})
}

type IDer

type IDer interface {
	ID() string
	UUID() string
}

type Task

type Task interface {
	IDer
	Eventer
	TimeEventer
}

type TimeEventer

type TimeEventer interface {
	AddTimeEvent(key string)
}

Jump to

Keyboard shortcuts

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