endpoint

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: 2 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 endpoint is the endpoint layer of the gRPC client SDK example. It adapts the transport layer's Client objects into domain-typed grpcclientv1.Endpoint functions consumed by the service layer, mirroring the HTTP client SDK example's endpoint layout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoEndpoints

type DemoEndpoints interface {
	Echo() grpcclientv1.Endpoint[string, string]
	Download() grpcclientv1.Endpoint[string, []byte]
}

DemoEndpoints exposes the Demo RPCs as domain-typed endpoints.

type Factory

type Factory interface {
	Demo() DemoEndpoints
}

Factory is the entry point of the endpoint layer.

func New

func New(transport txpclientv1.Factory) Factory

New creates an endpoint Factory from the transport Factory.

Jump to

Keyboard shortcuts

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