Versions in this module Expand all Collapse all v0 v0.14.0 Nov 17, 2026 v0.13.0 Nov 9, 2026 v0.12.0 Nov 3, 2026 Changes in this version + const ProtocolVersion + func DefaultRoot() (string, error) + func WithInboundMessage(ctx context.Context, message InboundMessage) context.Context + type DeliveryStatus string + const DeliveryAccepted + const DeliveryDelivered + const DeliveryDenied + const DeliveryExpired + const DeliveryHeld + const DeliveryRefused + type Handler func(InboundMessage) bool + type HeldEvictionHandler func(string) + type HeldReleaseHandler func(InboundMessage) + type HoldCause string + const HoldCauseExplicit + const HoldCauseModeMismatch + const HoldCauseModeUnknown + type Identity struct + Cwd string + Name string + PermissionClass PermissionClass + SessionID string + type InboundMessage struct + Body string + From Peer + HoldCause HoldCause + HopChain []string + ID string + ReceivedAt time.Time + RequiresApproval bool + Summary string + type InboundPolicy string + const InboundPolicyAccept + const InboundPolicyHold + const InboundPolicyParity + const InboundPolicyRefuse + type Options struct + Identity Identity + InboundPolicy InboundPolicy + Now func() time.Time + PID int + RootDir string + Transport localTransport + type Peer struct + Endpoint string + PID int + Ref string + StartedAt time.Time + UpdatedAt time.Time + type PermissionClass string + const PermissionBypass + const PermissionPrompting + type SendResult struct + MessageID string + Peer Peer + Status DeliveryStatus + type Service struct + func New(options Options) (*Service, error) + func (service *Service) Close() error + func (service *Service) List(ctx context.Context) ([]Peer, error) + func (service *Service) ResolveHeld(ctx context.Context, messageID string, status DeliveryStatus) error + func (service *Service) Self() Peer + func (service *Service) Send(ctx context.Context, to, summary, body string) (SendResult, error) + func (service *Service) SetHeldEvictionHandler(handler HeldEvictionHandler) + func (service *Service) SetHeldReleaseHandler(handler HeldReleaseHandler) + func (service *Service) SetStatusHandler(handler StatusHandler) + func (service *Service) Start(handler Handler) error + func (service *Service) UpdateIdentity(identity Identity) error + type StatusEvent struct + MessageID string + Peer Peer + Status DeliveryStatus + type StatusHandler func(StatusEvent)