libp2p/protocols/rendezvous

    Dark Mode
Search:
Group by:
  Source   Edit

Types

RendezVous = ref object of LPProtocol
  registered: OffsettedSeq[RegisteredData]
  namespaces: Table[string, seq[int]]
  rng: ref HmacDrbgContext
  salt: string
  defaultDT: Moment
  registerDeletionLoop: Future[void]
  sema: AsyncSemaphore
  peers: seq[PeerId]
  cookiesSaved: Table[PeerId, Table[string, seq[byte]]]
  switch: Switch
  Source   Edit
RendezVousError = object of LPError
  Source   Edit

Consts

MinimumDuration = (value: 7200000000000)
  Source   Edit
RendezVousCodec = "/rendezvous/1.0.0"
  Source   Edit

Procs

proc new(T: typedesc[RendezVous]; rng: ref HmacDrbgContext = newRng()): T:type {.
    ...raises: [].}
  Source   Edit
proc new(T: typedesc[RendezVous]; switch: Switch;
         rng: ref HmacDrbgContext = newRng()): T:type {....raises: [].}
  Source   Edit
proc request(rdv: RendezVous; ns: string; l: int = 1000'u64.int): Future[
    seq[PeerRecord]] {.stackTrace: false, ...raises: [], gcsafe, raises: [],
                       raises: [], tags: [RootEffect].}
  Source   Edit
proc requestLocally(rdv: RendezVous; ns: string): seq[PeerRecord] {....raises: [],
    tags: [RootEffect].}
  Source   Edit
proc setup(rdv: RendezVous; switch: Switch) {....raises: [], tags: [RootEffect].}
  Source   Edit
proc unsubscribe(rdv: RendezVous; ns: string): Future[void] {.stackTrace: false,
    ...raises: [], gcsafe, raises: [], raises: [], tags: [RootEffect].}
  Source   Edit
proc unsubscribeLocally(rdv: RendezVous; ns: string) {....raises: [], tags: [].}
  Source   Edit

Methods

method advertise(rdv: RendezVous; ns: string; ttl: Duration = MinimumDuration): Future[
    void] {.base, stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
            tags: [RootEffect].}
  Source   Edit
method start(rdv: RendezVous): InternalRaisesFuture[void, (CancelledError,)] {.
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
    tags: [WriteIOEffect, TimeEffect, RootEffect].}
  Source   Edit
method stop(rdv: RendezVous): InternalRaisesFuture[void, void] {.
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
    tags: [WriteIOEffect, TimeEffect, RootEffect].}
  Source   Edit