Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Support wildcard subscriptions + getter for known types #34

Closed
wants to merge 4 commits into from

Conversation

aarshkshah1992
Copy link

@aarshkshah1992 aarshkshah1992 commented Apr 15, 2020

Interface change at libp2p/go-libp2p-core#142.

We need this for the introspection work being done for libp2p/go-libp2p#775.

This will allow the introspection server to inform the client/Introspection UI about all events it will be receiving and about the types of the fields of these events so it can format them accordingly.
See https://github.com/libp2p/go-libp2p-core/blob/8fb76f42df5015dda050025a8b578f061967db02/introspection/pb/introspection.proto#L64.

This PR ALSO puts in a change to allow "wildcard" i.e. "catch-all" subscriptions.

@aarshkshah1992 aarshkshah1992 changed the title Eventbus should return all types it has emitters or subscribers for Eventbus should return all types it has emitters or subscribers for and wildcard subsripion Apr 15, 2020
basic.go Show resolved Hide resolved
@raulk raulk changed the title Eventbus should return all types it has emitters or subscribers for and wildcard subsripion Support wildcard subscriptions + getter for known types May 20, 2020
@raulk
Copy link
Member

raulk commented May 20, 2020

Superseded by #40.

@raulk raulk closed this May 20, 2020
@raulk raulk deleted the feat/fetch-types branch May 20, 2020 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants