Skip to content

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

Merged
merged 20 commits into from
Aug 30, 2021
Merged

feat: add grpc support #49

merged 20 commits into from
Aug 30, 2021

Conversation

whoAbhishekSah
Copy link
Member

This adds support for both HTTP and GRPC endpoints. The HTTP endpoints are reverse proxied to GRPC ones via grpc-gateway package.

pyadav and others added 16 commits August 18, 2021 16:05
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
Copy link
Member

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.

Copy link
Member

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>
Copy link
Member

@rahmatrhd rahmatrhd left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@rahmatrhd rahmatrhd merged commit fe9b681 into main Aug 30, 2021
@rahmatrhd rahmatrhd deleted the feat/grpc branch August 30, 2021 09:46
@whoAbhishekSah whoAbhishekSah linked an issue Oct 20, 2021 that may be closed by this pull request
ravisuhag pushed a commit that referenced this pull request Aug 21, 2022
* 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>
ravisuhag pushed a commit that referenced this pull request Aug 21, 2022
* 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>
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.

Add http2 support
4 participants