MCPcopy
hub / github.com/go-kit/kit / Client

Struct Client

transport/grpc/client.go:16–26  ·  view source on GitHub ↗

Client wraps a gRPC connection and provides a method that implements endpoint.Endpoint.

Source from the content-addressed store, hash-verified

14// Client wraps a gRPC connection and provides a method that implements
15// endpoint.Endpoint.
16type Client struct {
17 client *grpc.ClientConn
18 serviceName string
19 method string
20 enc EncodeRequestFunc
21 dec DecodeResponseFunc
22 grpcReply reflect.Type
23 before []ClientRequestFunc
24 after []ClientResponseFunc
25 finalizer []ClientFinalizerFunc
26}
27
28// NewClient constructs a usable Client for a single remote endpoint.
29// Pass an zero-value protobuf message of the RPC response type as

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected