Documentation
¶
Overview ¶
Package decoder is the response-decoder layer of the gRPC client SDK example's transport. Following the task_scheduler client SDK layout, it exposes a Factory that hands out the typed grpcclientv1 decoders per RPC: a unary Decoder for Echo, and the streaming MsgExtractor/StreamDecoder for Download, converting protobuf messages back into domain results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DemoDecoders ¶
type DemoDecoders interface {
Echo() grpcclientv1.Decoder[*pbv1.EchoResponse, string]
DownloadChunk() grpcclientv1.MsgExtractor[*pbv1.Chunk]
Download() grpcclientv1.StreamDecoder[[]byte]
}
DemoDecoders exposes the typed response decoders of each Demo RPC, matching the generic gRPC client SDK contract. The unary Echo RPC yields a Decoder, while the server-streaming Download RPC yields the chunk extractor and the stream decoder the SDK transport uses to aggregate the streamed payload.