RoutingDiscovery class
RoutingDiscovery is an implementation of discovery using ContentRouting. Namespaces are translated to Cids using the SHA256 hash.
- Implemented types
Constructors
- RoutingDiscovery.new(ContentRouting _router)
- Creates a new RoutingDiscovery
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
-
advertise(
String ns, [List< DiscoveryOption> options = const []]) → Future<Duration> -
Advertises a service
override
-
findPeers(
String ns, [List< DiscoveryOption> options = const []]) → Future<Stream< AddrInfo> > -
Discovers peers providing a service
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited