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

add OnSuccess, OnPanic, and OnInvalid hooks #586

Merged
merged 1 commit into from Mar 6, 2023

Conversation

muir
Copy link
Contributor

@muir muir commented Oct 1, 2022

Working to integrate resty with xop, I need to be able to detect when a request is finished. OnError already tracks one way a request could finish, but there are three other ways.

My need would be replicated by anyone else working to integrate resty with span/trace-based logging.

@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

Merging #586 (b9bac43) into master (64a19d1) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #586      +/-   ##
==========================================
+ Coverage   95.86%   95.94%   +0.08%     
==========================================
  Files          10       10              
  Lines        1330     1357      +27     
==========================================
+ Hits         1275     1302      +27     
  Misses         34       34              
  Partials       21       21              
Impacted Files Coverage Δ
client.go 97.76% <100.00%> (+0.11%) ⬆️
request.go 95.47% <100.00%> (+0.14%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jeevatkm jeevatkm added this to the v2.8.0 Milestone milestone Mar 6, 2023
Copy link
Member

@jeevatkm jeevatkm left a comment

Choose a reason for hiding this comment

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

@muir Thanks for your PR and contribution. I'm sorry for the delayed attention on the PR.

@jeevatkm jeevatkm merged commit 9e2a9b7 into go-resty:master Mar 6, 2023
@muir muir deleted the on-success branch March 6, 2023 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants