flakka-code / flakka

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

feat: Api Builder #1

Open ryanhanks-bestow opened 8 months ago

ryanhanks-bestow commented 8 months ago

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

ryanhanks-bestow commented 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.