-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Expose SSE events parser (internal/parser
)
#39
Comments
Hi there and thank you for your interest in First of all, I assume you're looking to decode/encode a wire format representation of an SSE event. Wouldn't these satisfy your use-case or are they too high level? I'm not familiar with what OpenAPI generates – should the already exposed APIs not work for you I could provide better assistance if you wish to elaborate more on how you'd plan to use the The reason why I'm asking this is because at the moment I wouldn't jump the gun and expose As for the comparison with the code in All in all, Finally, I want to thank you for bringing up OpenAPI – it could be an interesting idea to explore a way to integrate Let me know if this was of help and how I could assist you further! |
Sorry for the late reply! I've been a bit busy :') Like you have the WriteTo method, I wanted a ReadFrom method that'd read from a There is From more of a contributing perspective - I wanted to understand how you want to take this project further. Do you want to improve performance? do you want more UT converage? More integration support (I see that you already have some pub-sub interfaces!) It would help if we can align so I can contribute to open items! Thank you so much for the reply :) |
Disclaimer: While I want to be contributor to the repository, I am definitely not the owner, so I might be wrong/ opinionated here :) . I'm definitely open to having a discussion and reaching a consensus! I feel the structs might need to look like:
Thanks! |
Hey, I was searching around for only an SSE events parser - encoder/decoder. This was the only library I could find that isn't ancient - thanks for your work!
I'm using an openapi spec which generates ready to use API calls from client side - which is why I am not using the client in go-sse (it would take time to make it play well with openAPI generated code). However, I'm interested in using the code inside
internal/parser
. I could also help you with exposing it if you had a few ideas in mind.I saw that the code in https://github.com/donovanhide/eventsource/blob/master/decoder.go, was much simpler and shorter than what you have written up - is there any advantage that I'm missing to your implementation? Please do let me know!
Thanks!
Originally posted by @Pramodh-G in #7 (comment)
The text was updated successfully, but these errors were encountered: