This is a template project for getting started building gRPC clients and services using Kotlin Coroutines and kroto-plus code generation.
- Template Variations
- Using protoc-gen-grpc-coroutines (Basic)
- Using protoc-gen-kroto-plus (Advanced Features)
- Using protobuf-lite
The template can be built and ran using the following command:
git clone https://github.com/marcoferrer/kotlin-coroutines-gRPC-template && \
cd kotlin-coroutines-gRPC-template && \
./gradlew run
This template covers:
- Recommeded Build Configuration
- Implementing A Service
- Instantiating A Client Stub
- Attaching a
coroutineContext
- Attaching a
- Client and Server Rpc Method Examples:
- Unary
- Client Streaming
- Server Streaming
- BiDirectional Streaming