-
Notifications
You must be signed in to change notification settings - Fork 18
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
Metadata: add a function to access the stream map #71
Metadata: add a function to access the stream map #71
Conversation
I think we ought to return a copy of the map rather than the actual underlying one? Just to prevent the ability to manipulate it from outside of Metadata. |
Hm yes that would be more coherent with the other functions. I'll make that change. Shouldn't |
instead of a stream map to prevent external manipulation
Also, shouldn't those changes be made in the v2 module? |
Apologies for the delay on the response, was out all week. Yeah, we should include the changes in the v2 module. |
I have applied the changes to v2 metadata.go file and removed new function from v1. |
Since the change is backwards compatible, it's OK to include in v1 if you are reliant upon v1 of the module. I think larger API changes will only be applied to v2 going forward but I think it's fine to backport smaller changes to v1. |
This reverts commit 6bc4399.
Alright. I have reverted the function removal from v1. |
This PR adds a function to access the stream map when fetching metadata. The current API only allows you to get a SteamInfo using a stream name.