encoder

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package encoder is the request-encoder layer of the gRPC client SDK example's transport. Following the task_scheduler client SDK layout, it exposes a Factory that hands out one typed grpcclientv1.Encoder per RPC, converting a domain request into the corresponding protobuf request message so the transport layer can inject it into the generic gRPC client builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoEncoders

type DemoEncoders interface {
	Echo() grpcclientv1.Encoder[string, *pbv1.EchoRequest]
}

DemoEncoders exposes the typed request encoders of each Demo RPC, matching the generic gRPC client SDK contract. It converts a domain request into the corresponding protobuf request message.

type Factory

type Factory interface {
	Demo() DemoEncoders
}

Factory is the entry point of the encoder layer.

func New

func New() Factory

New creates the encoder Factory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL