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

Feature/grpc #143

Merged
merged 29 commits into from
Jan 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7b0a9f7
refactor(http-stress-test): reorganize and new ui lib
Onyxmoon Dec 8, 2023
cf41c67
fix(http-stress-test): fix bug in ramp up calc
Onyxmoon Dec 8, 2023
5785785
feat(product-service): add grpc skeleton and server
Onyxmoon Dec 13, 2023
fe3d74f
feat(product-service): add listener for multi protocol serving (http …
Onyxmoon Dec 14, 2023
da2945f
Merge branch 'feature/update-http-stress-test' into feature/grpc-product
Onyxmoon Dec 14, 2023
09f2857
feat(product-service): add coalescing server for http requests
Onyxmoon Dec 14, 2023
d77617b
feat(product-service): add coalescing controller and remove old approach
Onyxmoon Dec 14, 2023
eeef55d
chore(product-service): extract example demo repository functions for…
Onyxmoon Jan 1, 2024
c9f98b8
fix(product-service): adapt tests for product coalescing controller
Onyxmoon Jan 1, 2024
29f66b2
Merge c9f98b8e34cf5bf4beb1fb4ea3d4368909492991 into fcb13fc927dfa68f8…
Onyxmoon Jan 1, 2024
ec5d3ba
chore: Updated coverage badge.
actions-user Jan 1, 2024
a030637
test(product-service): refactor testing and fix self reference
Onyxmoon Jan 1, 2024
b8f56e6
feat(lib): add grpc service for prices in product service server prot…
Onyxmoon Jan 1, 2024
6e997d6
feat(product-service): add procedures for price grpc service
Onyxmoon Jan 1, 2024
d232968
feat(product-service): add coalescing controller variant for prices
Onyxmoon Jan 1, 2024
7f337b2
test(product-service): add test skeleton for grpc server
Onyxmoon Jan 1, 2024
654e349
Merge 7f337b26784342bb553edd01bab28b6db8f183c7 into fcb13fc927dfa68f8…
Onyxmoon Jan 1, 2024
1c75aed
chore: Updated coverage badge.
actions-user Jan 1, 2024
4d641d3
feat(lib): add protobuff specification for shopping list service
Onyxmoon Jan 1, 2024
eb537d6
build(shoppinglist-service): add generation for protoc
Onyxmoon Jan 1, 2024
da94daa
feat(user-service): add jwt verification for tokens
Onyxmoon Jan 2, 2024
9e6f2fa
feat(user-service): add grpc server for jwt token validation
Onyxmoon Jan 2, 2024
4cabea3
chore(product-service): delete comments
Onyxmoon Jan 2, 2024
9166354
chore(user-service): fix typo
Onyxmoon Jan 2, 2024
6b7d251
feat(user-service): add possibility to specify private key as string …
Onyxmoon Jan 2, 2024
62437f1
test(user-service): add random key generation for tests
Onyxmoon Jan 2, 2024
7ce3b3e
test(user-service): add random private key to router test
Onyxmoon Jan 2, 2024
805f10f
feat(lib): add possibility to use middlewares while routing
Onyxmoon Jan 3, 2024
688db03
Merge branch 'develop' into feature/grpc
Onyxmoon Jan 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(lib): add grpc service for prices in product service server prot…
…obuff definition #139
  • Loading branch information
Onyxmoon committed Jan 1, 2024
commit b8f56e62dcbfbef6f2217baa7a0abd51fe06c207
80 changes: 80 additions & 0 deletions lib/rpc/product/product.proto
Original file line number Diff line number Diff line change
@@ -10,6 +10,12 @@ message Product {
uint64 ean = 3;
}

message Price {
uint64 userId = 1;
uint64 productId = 2;
float price = 3;
}

service ProductService {
// create method for adding a new product
rpc CreateProduct(CreateProductRequest) returns (CreateProductResponse);
@@ -27,6 +33,26 @@ service ProductService {
rpc DeleteProduct(DeleteProductRequest) returns (DeleteProductResponse);
}

service PriceService {
// create method for adding a new price
rpc CreatePrice(CreatePriceRequest) returns (CreatePriceResponse);

// read method for finding a price by ids
rpc FindPrice(FindPriceRequest) returns (FindPriceResponse);

// read method for finding all products
rpc FindAllPrices(FindAllPricesRequest) returns (FindAllPricesResponse);

// read method for finding all products from a specific user/vendor
rpc FindAllPricesFromUser(FindAllPricesFromUserRequest) returns (FindAllPricesFromUserResponse);

// update method for updating a price
rpc UpdatePrice(UpdatePriceRequest) returns (UpdatePriceResponse);

// delete method to get rid of a price
rpc DeletePrice(DeletePriceRequest) returns (DeletePriceResponse);
}

// Request- and Response-Messages for CreateProduct
message CreateProductRequest {
Product product = 1;
@@ -68,4 +94,58 @@ message DeleteProductRequest {
}

message DeleteProductResponse {
}

// Request- and Response-Messages for CreatePrice
message CreatePriceRequest {
Price price = 1;
}

message CreatePriceResponse {
Price price = 1;
}

// Request- and Response-Messages for FindPrice
message FindPriceRequest {
uint64 userId = 1;
uint64 productId = 2;
}

message FindPriceResponse {
Price price = 1;
}

// Request- and Response-Messages for FindAllPrices
message FindAllPricesRequest {
}

message FindAllPricesResponse {
repeated Price price = 1;
}

// Request- and Response-Messages for FindAllPricesFromUser
message FindAllPricesFromUserRequest {
uint64 userId = 1;
}

message FindAllPricesFromUserResponse {
repeated Price price = 1;
}

// Request- and Response-Messages for UpdateProduct
message UpdatePriceRequest {
Price price = 1;
}

message UpdatePriceResponse {
Price price = 1;
}

// Request- and Response-Messages for DeleteProduct
message DeletePriceRequest {
uint64 userId = 1;
uint64 productId = 2;
}

message DeletePriceResponse {
}