-
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.
Generate gRPC service and client based on grpc-kotlin (#17)
* Generate gRPC service and client based on grpc-kotlin * Generate client and stub with grpc-kotlin * Build all branches snapshot * Add snapshot to dependency repositories * Make stub class as nested class of support * Register local client via localhost loop * Make client registrar work with grpc-kotlin * Make 'serviceDescriptor' abstract * Make build with snapshot repository * Add snapshot with username/password * Fix wrong repository name * Try to fix snapshot repository not work * Upgrade project plugin to 0.0.1 * Only set credentials when username not be null * Remove gRpc runtime classes * Make ktlint happy
- Loading branch information
Showing
31 changed files
with
365 additions
and
701 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
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
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
81 changes: 0 additions & 81 deletions
81
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/Adpter.kt
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/ClientCalls.kt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...phus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/GrpcContextCoroutineContextElement.kt
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/GrpcServerConstants.kt
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 @@ | ||
package com.bybutter.sisyphus.rpc | ||
|
||
object GrpcServerConstants { | ||
const val GRPC_PORT_PROPERTY = "server.grpc.port" | ||
|
||
const val DEFAULT_GRPC_PORT = 9090 | ||
} |
10 changes: 0 additions & 10 deletions
10
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/ManyToManyCall.kt
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/ManyToOneCall.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/Sender.kt
This file was deleted.
Oops, something went wrong.
70 changes: 0 additions & 70 deletions
70
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/ServerCallHandlers.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
lib/sisyphus-grpc/src/main/kotlin/com/bybutter/sisyphus/rpc/ServiceSupport.kt
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,7 +1,10 @@ | ||
package com.bybutter.sisyphus.rpc | ||
|
||
import com.bybutter.sisyphus.protobuf.primitives.ServiceDescriptorProto | ||
import io.grpc.ServiceDescriptor | ||
|
||
abstract class ServiceSupport { | ||
abstract val descriptor: ServiceDescriptorProto | ||
|
||
abstract val serviceDescriptor: ServiceDescriptor | ||
} |
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
Oops, something went wrong.