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

client: added parentRequestOptions #28

Merged
merged 1 commit into from
Nov 20, 2017

Conversation

josephbergevin
Copy link
Collaborator

allowing RequestOption inheritance with NewRequest

client.go Outdated
@@ -141,6 +144,13 @@ func (cl *Client) Do(c context.Context, req *Request) (*Response, error) {
return resp, nil
}

func WithParentRequestOptions(opts []RequestOption) ClientOption {
Copy link
Collaborator

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported function WithParentRequestOptions should have comment or be unexported

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd probably call the public function WithRequestOptions

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point. I'll change that.

@derekperkins
Copy link
Collaborator

Thanks reviewdog!

for RequestOption inheritance with NewRequest
@codecov
Copy link

codecov bot commented Nov 20, 2017

Codecov Report

Merging #28 into master will decrease coverage by 0.2%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
- Coverage   38.61%   38.41%   -0.21%     
==========================================
  Files           7        7              
  Lines         448      453       +5     
==========================================
+ Hits          173      174       +1     
- Misses        247      251       +4     
  Partials       28       28
Impacted Files Coverage Δ
client.go 52.67% <0%> (-1.96%) ⬇️
request.go 14.43% <100%> (+0.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2293aac...915d2d0. Read the comment docs.

@josephbergevin josephbergevin merged commit 2742cf1 into master Nov 20, 2017
@josephbergevin josephbergevin deleted the request-inherit-client-options branch November 20, 2017 18:11
@josephbergevin
Copy link
Collaborator Author

closes issue #25

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.

3 participants