DiscoveryRouting class
DiscoveryRouting is an implementation of ContentRouting using Discovery.
- Implemented types
Constructors
-
DiscoveryRouting.new(Discovery _discovery, [List<
DiscoveryOption> _opts = const []]) - Creates a new DiscoveryRouting
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findProvidersAsync(
CID cid, int count) → Stream< AddrInfo> -
Search for peers who are able to provide a given key
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
provide(
CID cid, bool announce) → Future< void> -
Provide adds the given cid to the content routing system. If 'true' is
passed, it also announces it, otherwise it is just kept in the local
accounting of which objects are being provided.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited