Types
AutonatService = ref object of Service networkReachability*: NetworkReachability
- Source Edit
libp2p_autonat_reachability_confidence = IgnoredCollector
- Source Edit
StatusAndConfidenceHandler = proc (networkReachability: NetworkReachability; confidence: Opt[float]): Future[void] {. ...gcsafe, async: (...raises: [CancelledError]).}
- Source Edit
Procs
proc new(T: typedesc[AutonatService]; autonatClient: AutonatClient; rng: Rng; scheduleInterval: Opt[Duration] = Opt.none(Duration); askNewConnectedPeers = true; numPeersToAsk: int = 5; maxQueueSize: int = 10; minConfidence: float = 0.3; dialTimeout = 30.seconds; enableAddressMapper = true): T:type {. ...raises: [].}
- Source Edit
proc statusAndConfidenceHandler(self: AutonatService; statusAndConfidenceHandler: StatusAndConfidenceHandler) {. ...raises: [], tags: [], forbids: [].}
- Source Edit
Methods
method setup(self: AutonatService; switch: Switch) {....raises: [], raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
- Source Edit
method start(self: AutonatService; switch: Switch): InternalRaisesFuture[void, (CancelledError,)] {....stackTrace: false, raises: [], gcsafe, raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
method stop(self: AutonatService; switch: Switch): InternalRaisesFuture[void, (CancelledError,)] {....stackTrace: false, raises: [], gcsafe, raises: [], tags: [RootEffect], forbids: [].}
- Source Edit