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 minDuration: Duration maxDuration: Duration minTTL: uint64 maxTTL: uint64
- Source Edit
RendezVousError = object of LPError
- Source Edit
Consts
MinimumDuration = (value: 7200000000000)
- Source Edit
RendezVousCodec = "/rendezvous/1.0.0"
- Source Edit
Procs
proc advertise(rdv: RendezVous; ns: string; ttl: Duration; peers: seq[PeerId]): Future[ void] {.stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [], tags: [RootEffect].}
- Source Edit
proc new(T: typedesc[RendezVous]; rng: ref HmacDrbgContext = newRng(); minDuration = MinimumDuration; maxDuration = MaximumDuration): T:type {. ...raises: [RendezVousError], raises: [].}
- Source Edit
proc new(T: typedesc[RendezVous]; switch: Switch; rng: ref HmacDrbgContext = newRng(); minDuration = MinimumDuration; maxDuration = MaximumDuration): 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 request(rdv: RendezVous; ns: string; l: int = 1000'u64.int; peers: seq[PeerId]): 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 unsubscribe(rdv: RendezVous; ns: string; peerIds: seq[PeerId]): 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 = rdv.minDuration): 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