Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an API to query the patterns matching a pattern #40

Closed
nielstron opened this issue Jul 11, 2022 · 0 comments · Fixed by #41
Closed

Provide an API to query the patterns matching a pattern #40

nielstron opened this issue Jul 11, 2022 · 0 comments · Fixed by #41
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@nielstron
Copy link
Contributor

Describe your idea, in simple words.

I want an endpoint that I can pass a pattern and then get back a list of patterns that kupo already tracks and match this pattern.

Why is it a good idea?

I query many different addresses in my application. It might happen that one of the addresses I am interested about is not tracked by kupo, in that case I want to fall back to a different endpoint. Rather than querying all patterns from kupo and then comparing them inside my application, it would be simpler to provide such a functionality inside kupo.

Are you willing to work on it yourself?

Yes, however I have trouble testing this. There is a prototypical implementation of this here: master...nielstron:kupo:master
I however have not been able to test if it works as intended (or even compiles)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants