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

feat: support SCTP & UDP as endpoint type #352

Merged
merged 3 commits into from
Nov 10, 2022

Conversation

ianchen0119
Copy link
Contributor

@ianchen0119 ianchen0119 commented Oct 27, 2022

Summary

Related Issue: #333

I added the handlers on sctp and udp protocol.
Cause I want to use gatus to monitor all the interfaces on 5G core network.

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Added the documentation in README.md, if applicable.

@ianchen0119
Copy link
Contributor Author

Hi @TwiN
Would you please help to review this PR?
Many thanks!

Copy link
Owner

@TwiN TwiN left a comment

Choose a reason for hiding this comment

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

Can you add tests & document how to monitor an UDP and a SCTP endpoint?

For the documentation part, there's an example here: Monitoring a TCP endpoint

@TwiN TwiN self-assigned this Nov 1, 2022
@TwiN TwiN added the feature New feature or request label Nov 1, 2022
@ianchen0119
Copy link
Contributor Author

@TwiN

Done 👍

@codecov-commenter
Copy link

Codecov Report

Base: 82.68% // Head: 82.06% // Decreases project coverage by -0.61% ⚠️

Coverage data is based on head (e198e04) compared to base (6e92c0e).
Patch coverage: 11.42% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #352      +/-   ##
==========================================
- Coverage   82.68%   82.06%   -0.62%     
==========================================
  Files          54       54              
  Lines        3990     4025      +35     
==========================================
+ Hits         3299     3303       +4     
- Misses        539      568      +29     
- Partials      152      154       +2     
Impacted Files Coverage Δ
client/client.go 55.33% <0.00%> (-17.74%) ⬇️
core/endpoint.go 75.93% <40.00%> (-1.56%) ⬇️

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@TwiN TwiN merged commit fa47a19 into TwiN:master Nov 10, 2022
@TwiN
Copy link
Owner

TwiN commented Nov 10, 2022

Thank you for the contribution!

@TwiN TwiN mentioned this pull request Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants