service_api library
Exports the minimum api to define server and client stubs.
Mainly intended to be imported by generated code.
Classes
- CallOptions
- Runtime options for an RPC.
- Client
- Base class for client stubs.
- ClientChannel
- A channel to a virtual RPC endpoint.
- ClientInterceptor
- ClientInterceptors intercepts client calls before they are executed.
-
ClientMethod<
Q, R> - Description of a gRPC method.
-
ResponseFuture<
R> - A gRPC response producing a single value.
-
ResponseStream<
R> - A gRPC response producing a stream of values.
- Service
- Definition of a gRPC service.
- ServiceCall
- Server-side context for a gRPC call.
-
ServiceMethod<
Q, R> - Definition of a gRPC service method.
Typedefs
-
ClientStreamingInvoker<
Q, R> = ResponseStream< R> Function(ClientMethod<Q, R> method, Stream<Q> requests, CallOptions options) -
ClientUnaryInvoker<
Q, R> = ResponseFuture< R> Function(ClientMethod<Q, R> method, Q request, CallOptions options) -
MetadataProvider
= FutureOr<
void> Function(Map<String, String> metadata, String uri) - Provides per-RPC metadata.