Skip to content

Golang client for replicated SDK#375

Open
debarshibasak wants to merge 4 commits intoreplicatedhq:mainfrom
adaptive-scale:main
Open

Golang client for replicated SDK#375
debarshibasak wants to merge 4 commits intoreplicatedhq:mainfrom
adaptive-scale:main

Conversation

@debarshibasak
Copy link

What does this PR do?

This PR involves the addition of a Golang client that retrieves license details from a replicated service.

Does this PR introduce a user-facing change?

Yes

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

return readAPIError(resp)
}
return nil
}
Copy link

Choose a reason for hiding this comment

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

PostIntegrationMockData duplicates existing doSend helper logic

Low Severity

PostIntegrationMockData manually marshals JSON, calls doRequest, defers body close, and checks the status code — exactly what doSend already does. Every other write-style method (SendCustomAppMetrics, UpdateCustomAppMetrics, DeleteCustomAppMetricsKey, SendAppInstanceTags) delegates to doSend. This function could simply be return c.doSend(ctx, http.MethodPost, "/api/v1/integration/mock-data", body), avoiding duplicated logic and inconsistent maintenance.

Additional Locations (1)

Fix in Cursor Fix in Web

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