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

Add Gnat.Jetstream.API.Object.Watcher #170

Open
jcreager opened this issue Sep 15, 2024 · 0 comments
Open

Add Gnat.Jetstream.API.Object.Watcher #170

jcreager opened this issue Sep 15, 2024 · 0 comments

Comments

@jcreager
Copy link
Contributor

To compliment Gnat.Jetstream.API.KV.Watcher this library should support the ability watch objects for changes. This is currently implemented in the nats cli as nats object watch <bucket name>.

@mmmries from an implementation perspective, what do think makes the most sense:

  • Refactor lib/gnat/jetstream/api/kv/watcher.ex in some way that supports objects and kv (they are both actions on streams and very similar).
  • Use lib/gnat/jetstream/api/kv/watcher.ex as a starting place for lib/gnat/jetstream/api/object/watcher.ex knowing there will be a fair amount of similarity in the implementation.

My personal instinct is to use lib/gnat/jetstream/api/kv/watcher.ex as a starting place and not worry about the similar implementations, but I'd like to hear your thoughts on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant