Commit Graph

11 Commits

Author SHA1 Message Date
vyzo 5d06aa2d4f add api for dynamically setting and resetting topic score parameters 2020-09-09 16:57:36 +03:00
Louis Thibault c5ece1d0c7 Add String() method to Topic. 2020-08-11 14:25:09 +03:00
Diederik Loerakker 99507107b6
Merge pull request #359 from protolambda/optional-sig-origin-seq
Signing policy + optional Signature, From and Seqno
2020-07-23 08:47:47 +03:00
Lukasz Zimnoch af44f7a07d Topic relay cancelling
Implemented relay reference
cancel logic.
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch 750cc66336 Topic relay support
Implemented Relay method which
allows to enable message relaying
for the given topic.
2020-05-01 12:22:22 +03:00
vyzo 8b423348a0 add ValidatorData field to Message
Useful for passing data from the validation to the application.
2019-11-15 20:16:58 +02:00
Adin Schmahmann 686c928d4e pubsub and topic methods now return error if the pubsub context has been cancelled instead of hanging 2019-11-04 03:52:39 -05:00
Adin Schmahmann ad97d9bf17 fixed closed Topic handles still being able to perform some actions on the topic 2019-11-02 19:28:44 -04:00
Adin Schmahmann 899f9cd62b fixed Topic close error 2019-11-01 17:12:23 -04:00
Adin Schmahmann f9c26c2e68 Added libp2p discovery capabilities to PubSub.
When the WithDiscovery option is passed to PubSub then PubSub will be able to search for more peers that are interested in our topics.

This includes the ability for Publishes (via Topic.Publish()) to block until the router is ready to publish. When a router is ready is currently defined by a combination of a user defined MinTopicSize function (passed into topic.Publish via the WithReadiness publish option) and the properties of the pubsub router used. The discovery tests show example usage.
2019-10-31 16:39:18 -04:00
Adin Schmahmann 5ef7439d71 interface: New Topic + TopicEventHandlers objects.
Added PubSub.Join(topic) that returns a Topic object. This object can be Subscribed and Published to as well as to get a TopicEventHandler for topic events. This means that the Subscription object will no longer handle PeerEvents and that PubSub's Publish and Subscribe functions are deprecated.
2019-10-31 15:37:44 -04:00