-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add management and delivery api basis
- Loading branch information
0 parents
commit f5080f9
Showing
9 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# v1.0.0-alpha.1 | ||
|
||
- (feature) Add management | ||
- (feature) Add delivery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# projections-proto | ||
|
||
This repository contains all protocol buffers for the gRPC api of the projections service. | ||
|
||
## usage | ||
|
||
1. git clone this project: | ||
|
||
```shell | ||
git clone [email protected]:fraym-work/projections-proto.git ./.pb | ||
``` | ||
|
||
2. generate code from the cloned files | ||
3. remove cloned data again to keep your project clean: | ||
|
||
```shell | ||
rm -rf ./.pb | ||
``` | ||
|
||
## components | ||
|
||
### management | ||
|
||
Contains all proto files for the management api of the projections service. | ||
|
||
### delivery | ||
|
||
Contains all proto files for the delivery api of the projections service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
syntax = "proto3"; | ||
package delivery; | ||
|
||
message GetDataRequest { | ||
string projection = 1; | ||
string data_id = 2; | ||
int32 limit = 3; | ||
int32 page = 4; | ||
} | ||
|
||
message GetDataResponse { | ||
string data = 1; | ||
int32 limit = 2; | ||
int32 page = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax = "proto3"; | ||
package delivery; | ||
import "delivery/getData.proto"; | ||
|
||
service Service { | ||
rpc GetData(GetDataRequest) returns (GetDataResponse); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package management; | ||
|
||
message CreateProjectionsRequest { | ||
string schema = 1; | ||
} | ||
|
||
message CreateProjectionsResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package management; | ||
|
||
message GetProjectionsRequest {} | ||
|
||
message GetProjectionsResponse { | ||
repeated string name = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package management; | ||
|
||
message RemoveProjectionsRequest { | ||
repeated string projection_names = 1; | ||
} | ||
|
||
message RemoveProjectionsResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
syntax = "proto3"; | ||
package management; | ||
import "management/createProjections.proto"; | ||
import "management/updateProjections.proto"; | ||
import "management/removeProjections.proto"; | ||
import "management/getProjections.proto"; | ||
|
||
service Service { | ||
rpc CreateProjections(CreateProjectionsRequest) returns (CreateProjectionsResponse); | ||
rpc UpdateProjections(UpdateProjectionsRequest) returns (UpdateProjectionsResponse); | ||
rpc RemoveProjections(RemoveProjectionsRequest) returns (RemoveProjectionsResponse); | ||
rpc GetProjections(GetProjectionsRequest) returns (GetProjectionsResponse); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package management; | ||
|
||
message UpdateProjectionsRequest { | ||
string schema = 1; | ||
} | ||
|
||
message UpdateProjectionsResponse {} |