Skip to content

Remove useless iot client interface #101

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

Merged
merged 1 commit into from
Apr 19, 2022
Merged

Conversation

polldo
Copy link
Contributor

@polldo polldo commented Apr 11, 2022

Motivation

the large iot.Client interface was not a good idea: it added a level of indirection not justified - java style (it was basically a duplication of function signature of a struct but with an obfuscation of its content)

Change description

this pr removes a large interface from the producer side and implement few little interfaces on the consumers when needed, following the google guidelines

Additional Notes

Reviewer checklist

  • PR address a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.
  • History is clean, commit messages are meaningful (see CONTRIBUTING.md) and are well formatted.

@polldo polldo marked this pull request as ready for review April 14, 2022 08:27
@polldo polldo requested review from mirkokurt and rsora April 14, 2022 08:28
@rsora
Copy link

rsora commented Apr 14, 2022

Copy link

@rsora rsora left a comment

Choose a reason for hiding this comment

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

LGTM

@polldo polldo merged commit 1c8edc4 into main Apr 19, 2022
@polldo polldo deleted the polldo/iotclient-interface branch April 19, 2022 09:05
polldo added a commit that referenced this pull request Sep 2, 2022
the large iot.Client interface was not a good idea: it added a level of indirection without bringing benefits
this pr removes a large interface from the producer side and implement few little interfaces on the consumers when needed, following the google guidelines https://github.com/golang/go/wiki/CodeReviewComments#interfaces
polldo added a commit that referenced this pull request Sep 2, 2022
the large iot.Client interface was not a good idea: it added a level of indirection without bringing benefits
this pr removes a large interface from the producer side and implement few little interfaces on the consumers when needed, following the google guidelines https://github.com/golang/go/wiki/CodeReviewComments#interfaces
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.

2 participants