ack

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ack provides acknowledgment tracking for messages. Acks are stored as JSON files in the sender's received/ and receiver's sent/ directories for coordination and audit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ack

type Ack struct {
	Schema   int    `json:"schema"`
	MsgID    string `json:"msg_id"`
	Thread   string `json:"thread"`
	From     string `json:"from"`
	To       string `json:"to"`
	Received string `json:"received"`
}

Ack records that a message was received and acknowledged.

func New

func New(msgID, thread, from, to string, received time.Time) Ack

func Read added in v0.4.0

func Read(path string) (Ack, error)

func (Ack) Marshal

func (a Ack) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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