transport

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: 8 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 transport is the transport layer of the gRPC client SDK example. It owns the shared *grpc.ClientConn and lazily builds one grpcclientv1.Client per RPC, injecting the domain <-> protobuf codecs provided by the encoder and decoder sub-packages. Streaming is aggregated by the SDK transport, so callers see a unary endpoint. This mirrors the layering of the task_scheduler client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoTransport

type DemoTransport interface {
	Echo() grpcclientv1.Client[string, string]
	Download() grpcclientv1.Client[string, []byte]
}

DemoTransport defines the transport layer interface for the Demo service. Each method returns a fully configured grpcclientv1.Client bound to one RPC.

type Factory

type Factory interface {
	Demo() DemoTransport
}

Factory is the entry point of the transport layer.

func New

func New(conn *grpc.ClientConn) Factory

New creates a transport Factory bound to the given client connection.

Directories

Path Synopsis
Package decoder is the response-decoder layer of the gRPC client SDK example's transport.
Package decoder is the response-decoder layer of the gRPC client SDK example's transport.
Package encoder is the request-encoder layer of the gRPC client SDK example's transport.
Package encoder is the request-encoder layer of the gRPC client SDK example's transport.

Jump to

Keyboard shortcuts

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