Client wraps a gRPC connection and provides a method that implements endpoint.Endpoint.
| 14 | // Client wraps a gRPC connection and provides a method that implements |
| 15 | // endpoint.Endpoint. |
| 16 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected