Skip to content

Add support for startFrom query parameter in SSEHandler #84

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RuairiSpain
Copy link

@RuairiSpain RuairiSpain commented Apr 19, 2025

Add support for startFrom query parameter in HTTP handler.

  • Modify src/route/handlers.go to parse the startFrom query parameter in the SSEHandler function.
  • Add code to apply seek after subscribing based on the startFrom query parameter in src/route/handlers.go.
  • Create a new file src/pulsarutil/start_pos.go and add the GetStartOption function to handle the startFrom query parameter.

For more details, open the Copilot Workspace session.

Add support for `startFrom` query parameter in HTTP handler.

* Modify `src/route/handlers.go` to parse the `startFrom` query parameter in the `SSEHandler` function.
* Add code to apply seek after subscribing based on the `startFrom` query parameter in `src/route/handlers.go`.
* Create a new file `src/pulsarutil/start_pos.go` and add the `GetStartOption` function to handle the `startFrom` query parameter.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/kafkaesque-io/pulsar-beam?shareId=XXXX-XXXX-XXXX-XXXX).
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

Successfully merging this pull request may close these issues.

1 participant