grpcdc/dynamic library
Classes
- DynamicClient
- Runtime-built client: methods resolve from the FileModel.
- DynamicHandler
- Implements a service with generic messages.
- DynamicStream
- Receiving stream of generic responses.
- FieldModel
- FileModel
- Parsed descriptor set: messages and services by full name. Message keys carry the leading dot (".echo.EchoRequest"), matching FieldDescriptorProto.type_name; service keys do not ("echo.Echo").
- GenericMessage
- A message as field number -> list of values (descriptor order).
- MessageModel
- MethodModel
- ServiceModel
Constants
- typeBool → const int
- typeBytes → const int
- typeDouble → const int
- typeEnum → const int
- typeFixed32 → const int
- typeFixed64 → const int
- typeFloat → const int
- typeGroup → const int
- typeInt32 → const int
- typeInt64 → const int
- typeMessage → const int
- typeSfixed32 → const int
- typeSfixed64 → const int
- typeSint32 → const int
- typeSint64 → const int
- typeString → const int
- typeUint32 → const int
- typeUint64 → const int
Functions
-
decodeGeneric(
MessageModel model, List< int> data, FileModel file) → GenericMessage -
encodeGeneric(
MessageModel model, GenericMessage message, FileModel file) → Uint8List -
parseDescriptorSet(
List< int> data) → FileModel - Parse FileDescriptorSet bytes into a FileModel.
-
registerDynamicService(
Server server, FileModel fileModel, String serviceName, DynamicHandler handler) → void - Register a runtime-built service on a Server.
Typedefs
-
DynamicRecvFn
= Future<
GenericMessage> Function() - Handler signatures for registerDynamicService.
-
DynamicSendFn
= Future<
void> Function(GenericMessage resp)