task

package
v0.6.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: BSD-3-Clause Imports: 4 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
	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(val cue.Value) *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