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.