Commit aec6379
authored
grpc: Add interceptor API (#484)
* grpc: Add client interceptor support
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Add client interceptor support
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Add server interceptor support
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Refactor server scope API
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Refactor client scope API
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Add tests
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Rename GrpcTrailers to GrpcMetadata.kt
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Refactor cancel API in ClientCallScope to return Nothing
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Remove println
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Adjust metadata names
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Fix Ktor server constructor
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Add documentation
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Adjust client/server DSL and provide documentation
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Fix race condition bug
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Fix context not set
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Add multi interceptor tests
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Address PR comments
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Add client interceptor execution order test
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Address PR comments
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Fixing bug after rebase
Signed-off-by: Johannes Zottele <[email protected]>
* grpc: Fix default proto package in service name
---------
Signed-off-by: Johannes Zottele <[email protected]>1 parent 68887e1 commit aec6379
File tree
45 files changed
+1821
-400
lines changed- cinterop-c
- compiler-plugin/compiler-plugin-backend/src/main/kotlin/kotlinx/rpc/codegen/extension
- grpc
- grpc-core/src
- commonMain/kotlin/kotlinx/rpc/grpc
- internal
- commonTest/kotlin/kotlinx/rpc/grpc/test
- proto
- jvmMain/kotlin/kotlinx/rpc/grpc
- internal
- nativeMain/kotlin/kotlinx/rpc/grpc
- internal
- grpc-ktor-server/src
- commonMain/kotlin/kotlinx/rpc/grpc/ktor/server
- jvmTest/kotlin/kotlinx/rpc/grpc/ktor/server/test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+1821
-400
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 131 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
0 commit comments