libp2p/protocols/pubsub/gossipsub/extensions_types

Search:
Group by:
Source   Edit  

Types

Extension = ref object of RootObj
Source   Edit  
PeerExtensions = object
  testExtension*: bool
  partialMessageExtension*: bool
  pingpongExtension*: bool
  preambleExtension*: bool
Source   Edit  
UpdatePeerBehaviorPenaltyProc = proc (peerId: PeerId; delta: float64) {....gcsafe,
    raises: [].}
Source   Edit  

Methods

method isSupported(ext: Extension; pe: PeerExtensions): bool {.base, ...gcsafe,
    raises: [], tags: [], forbids: [].}
should return _true if this extension is supported by provided PeerExtensions. Source   Edit  
method onHandleRPC(ext: Extension; peerId: PeerId; rpc: RPCMsg) {.base, ...gcsafe,
    raises: [], tags: [], forbids: [].}
Source   Edit  
method onHeartbeat(ext: Extension) {.base, ...gcsafe, raises: [], tags: [],
                                     forbids: [].}
called on every gossipsub heartbeat. Source   Edit  
method onNegotiated(ext: Extension; peerId: PeerId) {.base, ...gcsafe, raises: [],
    tags: [], forbids: [].}
Source   Edit  
method onRemovePeer(ext: Extension; peerId: PeerId) {.base, ...gcsafe, raises: [],
    tags: [], forbids: [].}
Source   Edit