1 Commits
Author SHA1 Message Date
zeekay 3358b98053 zwing: add DialZAP / ListenZAP one-call ZAP-over-Z-Wing helpers
Composing PQ transport with ZAP RPC was already a 2-line pattern:

    raw, _ := zwing.Dial(ctx, addr, cfg)
    conn   := zap.NewConn(raw, nil)

Two lines means two ways to mess it up (forget to wrap, leak the
raw conn). Add the canonical one-call wrappers so there is exactly
one way to do it:

    conn, _ := zwing.DialZAP(ctx, addr, cfg)
    ln,   _ := zwing.ListenZAP(":9999", cfg)
    srv     := zap.NewServer(ln, handler)

Pairs with luxfi/api v1.0.10 zap.NewListener. No new wire format,
no new dep — these are sugar over the existing primitives.
2026-05-06 12:50:56 -07:00