package logic import "context" // Deduper is SETNX deliver:done:{msgId} so a retried job cannot increment unread twice. type Deduper interface { Mark(ctx context.Context, msgID int64) (first bool, err error) }