-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: scaffold hybrid grpc/rest server architecture (#63)
* feat: generate basic grpc service * feat: baseline grpc discovery servicer * feat: move rest routes to common * refactor: reaname types module to models * chore: dependencies * perf: simplify default recipient * chore: cleanup rest server * feat: add grpc command
- Loading branch information
Showing
41 changed files
with
2,685 additions
and
1,899 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,11 +1,33 @@ | ||
version: v1 | ||
version: v2 | ||
plugins: | ||
- plugin: buf.build/community/neoeinstein-prost:v0.3.1 | ||
- remote: buf.build/community/neoeinstein-prost:v0.3.1 | ||
out: delta-sharing/common/src/gen | ||
opt: | ||
- bytes=. | ||
- compile_well_known_types | ||
- extern_path=.google.protobuf=::pbjson_types | ||
- file_descriptor_set | ||
- plugin: buf.build/community/neoeinstein-prost-serde:v0.3.0 | ||
- file_descriptor_set=false | ||
- remote: buf.build/community/neoeinstein-prost-serde:v0.3.0 | ||
out: delta-sharing/common/src/gen | ||
opt: | ||
# useful to build reusable extractors for axum | ||
- ignore_unknown_fields=true | ||
- remote: buf.build/community/neoeinstein-tonic:v0.4.0 | ||
out: delta-sharing/common/src/gen | ||
opt: | ||
- no_client=true | ||
- extern_path=.google.protobuf=::pbjson_types | ||
- remote: buf.build/community/neoeinstein-prost:v0.3.1 | ||
out: delta-sharing/client/src/gen | ||
opt: | ||
- bytes=. | ||
- compile_well_known_types | ||
- extern_path=.google.protobuf=::pbjson_types | ||
- file_descriptor_set=false | ||
- remote: buf.build/community/neoeinstein-prost-serde:v0.3.0 | ||
out: delta-sharing/client/src/gen | ||
- remote: buf.build/community/neoeinstein-tonic:v0.4.0 | ||
out: delta-sharing/client/src/gen | ||
opt: | ||
- no_server=true | ||
- extern_path=.google.protobuf=::pbjson_types |
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
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
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 |
---|---|---|
|
@@ -9,17 +9,31 @@ authors = ["Robert Pack <[email protected]>"] | |
async-trait = { workspace = true } | ||
chrono = { workspace = true } | ||
delta_kernel = { workspace = true } | ||
futures = { workspace = true } | ||
http = { workspace = true } | ||
hyper = { workspace = true } | ||
object_store = { workspace = true } | ||
serde = { workspace = true } | ||
thiserror = { workspace = true } | ||
tonic = { workspace = true } | ||
tower = { workspace = true, features = ["make"] } | ||
tracing = { workspace = true } | ||
url = { workspace = true } | ||
|
||
# server dependencies (in alphabetical order) | ||
bytes = { version = "1.1" } | ||
futures-util = "0.3.28" | ||
http-body = { version = "1" } | ||
http-body-util = "0.1.2" | ||
hyper-util = { version = "0.1", features = ["full"] } | ||
pbjson = { version = "0.7" } | ||
pin-project = "1.1" | ||
prost = { version = "0.13" } | ||
serde_json = { version = "1.0" } | ||
serde_yml = { version = "0.0.12" } | ||
tokio = { version = "1", features = ["rt-multi-thread", "parking_lot"] } | ||
tower-http = { version = "0.6", features = ["trace"] } | ||
tracing-subscriber = { version = "0.3", features = ["tracing-log", "fmt"] } | ||
|
||
# in-memory handler dependencies (in alphabetical order) | ||
dashmap = { version = "6", optional = true } | ||
|
@@ -37,6 +51,11 @@ axum = { version = "0.7.5", optional = true } | |
|
||
[dev-dependencies] | ||
tokio = { version = "1", features = ["full"] } | ||
tower = "*" | ||
http = "*" | ||
http-body-util = "*" | ||
serde_json = "*" | ||
|
||
|
||
[features] | ||
default = ["memory", "profiles", "axum"] | ||
|
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
Oops, something went wrong.