Versions in this module Expand all Collapse all v0 v0.1.0 Jul 5, 2026 Changes in this version + const CallKeyMetaKey + const PriceMetaKey + const PricingMetaKey + const SampleEnvelope + func IsEnvelope(text string) bool + type Conn struct + func (c *Conn) AsTransport() mcp.Transport + func (c *Conn) Close() error + func (c *Conn) Peer() string + func (c *Conn) Read(ctx context.Context) (jsonrpc.Message, error) + func (c *Conn) SessionID() string + func (c *Conn) Write(ctx context.Context, msg jsonrpc.Message) error + type PMSender interface + SendPM func(ctx context.Context, peer string, text string) error + type PaymentRequired struct + AcceptedRails []string + BalanceAtoms int64 + Error string + PriceAtoms int64 + ShortfallAtoms int64 + Tool string + type Router struct + func NewRouter(cfg RouterConfig) *Router + func (r *Router) Close() + func (r *Router) Dial(peer string) (*Conn, error) + func (r *Router) HandlePM(peer, text string) + type RouterConfig struct + Accept func(conn *Conn) + Allow func(peer string) bool + Assembler wire.AssemblerConfig + ChunkSize int + IdleTimeout time.Duration + InboxSize int + Logf func(format string, args ...any) + MaxSessionsPerPeer int + Sender PMSender + TTL time.Duration