package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Oct 15, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package work defines caller-owned work identity. Keys and tags are opaque:
consumers may store and compare them, but assign them no tracker semantics.
Key identifies one unit of work. The empty key means no work is addressed.
Filename is a bounded, collision-resistant path component, including on
case-insensitive filesystems. Stores also verify the key inside the file.
type Ref struct {
Key Key `json:"key,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
}
Ref carries identity and optional caller-defined metadata.
Clone copies metadata so updating a reference cannot change another record.
Matches reports whether the reference contains all the requested tags.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.