Documentation
¶
Overview ¶
Package memory is what the turns of a task learned, across every unit the task holds and the tasks merged into it, and, once the task reopened, how it had ended.
Index ¶
Constants ¶
const Recent = 3
Recent is how many learned entries a turn's instructions carry; task_read lists them all.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Items ¶
type Items interface {
Items(ctx context.Context, u unit.Unit) ([]items.Item, error)
Log(ctx context.Context, u unit.Unit, since time.Time) ([]coreitems.LogEntry, error)
}
Items are the items ledger's items and the outcomes of its ops.
type Outcome ¶
Outcome is how a reopened task had ended: the summary of its last turn and the resolutions of its items, as they stood when it reopened at ReopenedAt.
type Service ¶
type Service struct {
Tasks Tasks
// Merges nil merges no task into another.
Merges Merges
Books Books
// Items nil derives no item of an outcome.
Items Items
}
func (*Service) LearnedOf ¶
LearnedOf is what e's turns learned, newest first, without the outcome OfTask derives.