Skip to content
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

refactor to use options pattern throughout #5

Merged
merged 13 commits into from
Sep 4, 2024
Merged

Conversation

matoszz
Copy link
Contributor

@matoszz matoszz commented Sep 2, 2024

Basically a wholesale refactor, changing all of the request / response / "do" functions to use options patterns and self-referencing functions

@github-actions github-actions bot added the enhancement New feature or request label Sep 2, 2024
Copy link
Member

@golanglemonade golanglemonade left a comment

Choose a reason for hiding this comment

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

nice! I think we should try to use this in core before we merge, because we have a lot of code that uses the httpsling.Client which is removed here so we need to make sure there is 1:1 functionality, at first pass it looks like we might be missing some pieces that we depend on today.

httpclient/options.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
httpclient/options.go Outdated Show resolved Hide resolved
httptestutil/dump.go Outdated Show resolved Hide resolved
httptestutil/dump.go Show resolved Hide resolved
requester.go Outdated Show resolved Hide resolved
requester.go Outdated Show resolved Hide resolved
options.go Outdated Show resolved Hide resolved
options.go Outdated Show resolved Hide resolved
options.go Show resolved Hide resolved
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Copy link

sonarcloud bot commented Sep 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
E Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@golanglemonade golanglemonade merged commit 50a81ab into main Sep 4, 2024
9 of 10 checks passed
@golanglemonade golanglemonade deleted the feat-options branch September 4, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants