Open ryanhanks-bestow opened 8 months ago
Notes on creating a dart protoc plugin:
Run CodeGenerator.generate, capture and forward CodeGeneratorRequest on stdin and CodeGeneratorResponse on output. Walk descriptors to find entity_id, event, state, view containers.
Description
A builder for assets supporting service / service adapter implementations.
For each ServiceBase in a .pbgrpc.dart file, create:
Service [Acquires adapter from provider, forwards calls to adapter] Adapter [Handles calls] Provider [Caching for adapter reuse across requests] Factory [Creates adapter]
Requirements
Additional Context
Testing here will provide basis for
testAdapter
helper