wake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package wake is a task's wait for a time, an event or a condition, which the host matches and turns into a task.woke event a profile workflow reacts to.

Index

Constants

View Source
const EventWoke = "task.woke"

EventWoke is the kind of the event a matched wake emits on its task.

View Source
const OnActivity = "activity"

OnActivity is the kind in On that a person's new activity on a unit the task holds matches.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wake

type Wake struct {
	Task    task.ID
	Until   time.Time
	On      []string
	Actors  []string
	When    string
	Expires time.Time
	Return  string
}

Wake is a task's one wake; a zero field matches nothing.

Until wakes the task at a time. On are the event kinds on the task or its links that wake it, narrowed to the events of Actors when set. When is a predicate over the task's facts that wakes it once it holds. Expires drops the wake unmatched; zero never expires. Return is the state the profile's wake workflow moves the task back to; "" leaves it to the workflow.

Jump to

Keyboard shortcuts

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