libp2p/protocols/pubsub/gossipsub

    Dark Mode
Search:
Group by:
  Source   Edit

Gossip based publishing

Procs

proc handleSubscribe(g: GossipSub; peer: PubSubPeer; topic: string;
                     subscribe: bool) {....raises: [Defect], tags: [].}
  Source   Edit
proc init(_: type[GossipSubParams]): GossipSubParams {....raises: [Defect].}
  Source   Edit
proc validateParameters(parameters: GossipSubParams): Result[void, cstring] {.
    ...raises: [Defect], tags: [].}
  Source   Edit
proc validateParameters(parameters: TopicParams): Result[void, cstring] {.
    ...raises: [Defect], tags: [].}
  Source   Edit

Methods

method initPubSub(g: GossipSub) {....raises: [Defect, InitializationError],
                                  raises: [Defect], tags: [RootEffect].}
  Source   Edit
method onPubSubPeerEvent(p: GossipSub; peer: PubSubPeer; event: PubsubPeerEvent) {.
    ...gcsafe, raises: [Defect], tags: [].}
  Source   Edit
method onTopicSubscription(g: GossipSub; topic: string; subscribed: bool) {.
    ...raises: [Defect], tags: [RootEffect].}
  Source   Edit
method start(g: GossipSub): Future[void] {.stackTrace: false, ...gcsafe,
    raises: [Defect], raises: [Defect], tags: [RootEffect].}
  Source   Edit
method stop(g: GossipSub): Future[void] {.stackTrace: false, ...gcsafe,
    raises: [Defect], raises: [Defect], tags: [RootEffect].}
  Source   Edit
method unsubscribePeer(g: GossipSub; peer: PeerId) {....raises: [Defect],
    tags: [RootEffect].}
handle peer disconnects   Source   Edit