ReproviderResult class

Result of a single reprovide run.

Constructors

ReproviderResult({required String strategy, required int attempted, required int succeeded, required int failed, required Duration duration, List<String> errors = const [], Map<PeerId, List<CID>>? groupedCids})
Creates a new ReproviderResult.

Properties

attempted → int
Number of CIDs whose announcement was attempted.
final
duration → Duration
Duration of the reprovide run.
final
errors → List<String>
Human-readable error messages encountered during the run.
final
failed → int
Number of CIDs whose announcement failed.
final
groupedCids → Map<PeerId, List<CID>>?
CIDs grouped by target peer when sweep optimization is enabled.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strategy → String
Strategy used for this run.
final
succeeded → int
Number of CIDs whose announcement succeeded.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this result to a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited