Skip to content

Go: XInfoStream update response - #4136

Merged
prateek-kumar-improving merged 36 commits into
release-2.0from
go/xinfo-stream-update-command
Jun 12, 2025
Merged

prateek-kumar-improving merged 36 commits into
release-2.0from
go/xinfo-stream-update-command

Conversation

@prateek-kumar-improving

@prateek-kumar-improving prateek-kumar-improving commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator

Issue link

This Pull Request is linked to issue (URL): #4144

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: prateek-kumar-improving <prateek.kumar@improving.com>
@prateek-kumar-improving prateek-kumar-improving changed the title Go: Add XInfoStream command response Go: XInfoStream update response Jun 10, 2025
@yipin-chen yipin-chen added the go 🏃 golang wrapper label Jun 10, 2025
Signed-off-by: prateek-kumar-improving <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
@prateek-kumar-improving
prateek-kumar-improving marked this pull request as ready for review June 10, 2025 21:23
@prateek-kumar-improving
prateek-kumar-improving requested a review from a team as a code owner June 10, 2025 21:23
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Comment thread go/response_handlers.go Outdated
Comment thread go/stream_commands_test.go Outdated
Comment thread go/response_handlers.go Outdated
Comment thread go/stream_commands_test.go Outdated
Comment thread go/stream_commands_test.go Outdated
Signed-off-by: prateek-kumar-improving <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Comment thread go/base_client.go
//
// [valkey.io]: https://valkey.io/commands/xinfo-stream/
func (client *baseClient) XInfoStream(ctx context.Context, key string) (map[string]any, error) {
func (client *baseClient) XInfoStream(ctx context.Context, key string) (models.XInfoStreamResponse, error) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Yury-Fridlyand how do these sort of response type changes affect the batch API?

Comment thread go/integTest/shared_commands_test.go Outdated
Comment thread go/integTest/shared_commands_test.go Outdated
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Comment thread go/models/stream_command_results.go Outdated
Comment thread go/models/stream_command_results.go Outdated
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>

@jbrinkman jbrinkman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending changes discussed. :shipit:

Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
@prateek-kumar-improving

prateek-kumar-improving commented Jun 12, 2025

Copy link
Copy Markdown
Collaborator Author

Approved pending changes discussed. :shipit:

Updated. KeyValue struct added:

type KeyValue struct {
	// The name of the field
	Key string
	// The value of the field
	Value string
}

@prateek-kumar-improving
prateek-kumar-improving merged commit 4294fbb into release-2.0 Jun 12, 2025
@yipin-chen
yipin-chen deleted the go/xinfo-stream-update-command branch June 12, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go 🏃 golang wrapper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants