Discover Packages
github.com/avivsinai/agent-message-queue
internal
receipt
package
Version:
v0.41.1
Opens a new window with list of versions in this module.
Published: Jul 10, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type ListFilter
type Receipt
List(root, agent, f)
New(msgID, thread, sender, consumer, stage, detail)
Read(path)
WaitFor(root, msgID, consumer, stage, timeout, pollInterval)
(r) Marshal()
Source Files
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Constants
func Emit(root string, r Receipt) error
type ListFilter
type Receipt
func List(root, agent string, f ListFilter) ([]Receipt, error)
func New(msgID, thread, sender, consumer, stage, detail string) Receipt
func Read(path string) (Receipt, error)
func WaitFor(root, msgID, consumer, stage string, timeout, pollInterval time.Duration) (Receipt, error)
View Source
const (
StageDrained = "drained"
StageDLQ = "dlq"
)
Emit writes a receipt to the consumer's receipts directory.
Receipts live only in the consumer namespace; callers that need to observe
them must read from the delivery root where the consumer emitted them.
type Receipt struct {
Schema int `json:"schema"`
MsgID string `json:"msg_id"`
Thread string `json:"thread,omitempty"`
Sender string `json:"sender"`
Consumer string `json:"consumer"`
Stage string `json:"stage"`
EmittedAt string `json:"emitted_at"`
Detail string `json:"detail,omitempty"`
}
func New(msgID, thread, sender, consumer, stage, detail string ) Receipt
WaitFor polls for a specific consumer-local receipt by deterministic filename.
Returns the receipt on match, or an error on timeout.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.