attention

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSnapshotUnavailable = errors.New(
	"notifications: snapshot expired or unavailable; refresh notifications",
)

ErrSnapshotUnavailable requires a fresh notification read before retrying.

Functions

func Identity

func Identity(parts ...string) string

Identity preserves source boundaries even when identifiers contain separators.

func SnapshotIdentity

func SnapshotIdentity(scope Scope, occurrences []string) (string, []string)

SnapshotIdentity deduplicates unchanged snapshots across polling clients.

Types

type Scope

type Scope struct {
	ProfileID  string
	ActorKind  string
	ActorID    string
	Population string
}

Scope binds receipts to the operator and snapshots to their selected population.

func (Scope) Validate

func (s Scope) Validate() error

type Store

type Store interface {
	CaptureAttentionSnapshot(context.Context, Scope, []string) (string, []string, error)
	AcknowledgeAttentionSnapshot(context.Context, Scope, string, string) error
}

Store persists exact occurrence receipts without changing source state.

Jump to

Keyboard shortcuts

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