libp2p/go-libp2p-pubsub là dự án mã nguồn mở trên GitHub với 365 sao, viết chủ yếu bằng Go. The PubSub implementation for go-libp2p
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
The pubsub system supports tracing, which collects all events pertaining to the internals of the system. This allows you to recreate the complete message flow and state of the system for analysis purposes.
To enable tracing, instantiate the pubsub system using the WithEventTracer option; the option accepts a tracer with three available implementations in-package (trace to json, pb, or a remote peer).
If you want to trace using a remote peer, you can do so using the traced daemon from go-libp2p-pubsub-tracer. The package also includes a utility program, tracestat, for analyzing the traces collected by the daemon.
For instance, to capture the trace as a json file, you can use the following option:
Finally, to use the remote tracer, you can use the following incantations:
// assuming that your tracer runs in x.x.x.x and has a peer ID of QmTracer
pi, err := peer.AddrInfoFromP2pAddr(ma.StringCast("/ip4/x.x.x.x/tcp/4001/p2p/QmTracer"))
if err != nil {
panic(err)
}
tracer, err := pubsub.NewRemoteTracer(ctx, host, pi)
if err != nil {
panic(err)
}
ps, err := pubsub.NewGossipSub(..., pubsub.WithEventTracer(tracer))
Contribute
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.
Small note: If editing the README, please conform to the standard-readme specification.
License
The go-libp2p-pubsub project is dual-licensed under Apache 2.0 and MIT terms:
Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
libp2p/go-libp2p-pubsub có 365 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/libp2p/go-libp2p-pubsub. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
libp2p/go-libp2p-pubsub có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho libp2p/go-libp2p-pubsub. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
libp2p/go-libp2p-pubsub còn đang phát triển không?
Commit gần nhất trên libp2p/go-libp2p-pubsub là 16 ngày trước (theo timestamp GitHub). Repo có 221 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
libp2p/go-libp2p-pubsub là gì?
libp2p/go-libp2p-pubsub (libp2p/go-libp2p-pubsub) là dự án Go trên GitHub. Theo mô tả gốc: The PubSub implementation for go-libp2p
libp2p/go-libp2p-pubsub viết bằng ngôn ngữ gì?
libp2p/go-libp2p-pubsub chủ yếu viết bằng Go. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc go-libp2p-pubsub có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về go-libp2p-pubsub.