-
Notifications
You must be signed in to change notification settings - Fork 16
feat: add grpc support #49
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
Conversation
Co-authored-by: Abhishek <abhi.sah.97@gmail.com>
Co-authored-by: Praveen Yadav <pyadav9678@gmail.com>
Co-authored-by: Abhishek <abhi.sah.97@gmail.com>
Co-authored-by: Abhishek <abhi.sah.97@gmail.com>
…utes Co-authored-by: Abhishek <abhi.sah.97@gmail.com>
Co-authored-by: Abhishek <abhi.sah.97@gmail.com>
Co-authored-by: Abhishek <abhi.sah.97@gmail.com>
Co-authored-by: Praveen Yadav <pyadav9678@gmail.com>
Co-authored-by: Praveen Yadav <pyadav9678@gmail.com>
…nvalid parameters Co-authored-by: Praveen Yadav <pyadav9678@gmail.com>
Co-authored-by: Praveen Yadav <pyadav9678@gmail.com>
Makefile
Outdated
generate-proto: ## regenerate protos | ||
@echo " > cloning protobuf from odpf/proton" | ||
@echo " > generating protobuf" | ||
@buf generate --template buf.gen.yaml https://github.com/odpf/proton.git --path odpf/odin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whoAbhishekSah Generation path is wrong. Also, would recommend to use git commit ref id in buf generate command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path is fixed.
Didn't see any reference using git commit ref. Even if it is possible would you like to ref with merged commit hash or last commit reference pushed into the branch 🤔
Co-authored-by: Abhishek <abhi.sah.97@gmail.com>
Co-authored-by: Abhishek <abhi.sah.97@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
* feat: add grpc gateway support Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * feat: create grpc handlers for alert history APIs Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * create grpc handlers for workspace list API * create grpc handlers for exchange code API * create grpc handlers for alert credentials APIs * feat: create grpc handlers for notification API Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * feat: create grpc handlers for rules APIs Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * feat: create grpc handlers for template APIs and remove associated routes Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * test: create alert history api * refactor: request & response payload from camelCase to snake_case Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * feat: add slack blocks in send slack notification grpc api Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * docs: serve swagger docs via http api * refactor: remove redundant logging config & add missing log statements Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * feat: add newrelic integration for grpc handlers Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * fix: return success response when create alert history fails due to invalid parameters Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * refactor: fix linting and formatting issues Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * refactor: follow grpc naming conventions Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * fix: change buf generate path to siren Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * fix: add siren executable in gitignore * refactor: change Alerts to singular word Alert Co-authored-by: Praveen Yadav <pyadav9678@gmail.com>
* feat: add grpc gateway support Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * feat: create grpc handlers for alert history APIs Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * create grpc handlers for workspace list API * create grpc handlers for exchange code API * create grpc handlers for alert credentials APIs * feat: create grpc handlers for notification API Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * feat: create grpc handlers for rules APIs Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * feat: create grpc handlers for template APIs and remove associated routes Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * test: create alert history api * refactor: request & response payload from camelCase to snake_case Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * feat: add slack blocks in send slack notification grpc api Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * docs: serve swagger docs via http api * refactor: remove redundant logging config & add missing log statements Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * feat: add newrelic integration for grpc handlers Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * fix: return success response when create alert history fails due to invalid parameters Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * refactor: fix linting and formatting issues Co-authored-by: Praveen Yadav <pyadav9678@gmail.com> * refactor: follow grpc naming conventions Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * fix: change buf generate path to siren Co-authored-by: Abhishek <abhi.sah.97@gmail.com> * fix: add siren executable in gitignore * refactor: change Alerts to singular word Alert Co-authored-by: Praveen Yadav <pyadav9678@gmail.com>
This adds support for both HTTP and GRPC endpoints. The HTTP endpoints are reverse proxied to GRPC ones via grpc-gateway package.