ICall
public protocol ICall
Base protocol for a Grebe call to a gRPC service.
gRPC lets you define four kinds of service method:
- Unary RPCs (
GUnaryCall) - Server streaming RPCs (
GServerStreamingCall) - Client streaming RPCs (
GClientStreamingCall) - Bidirectional streaming RPCs (
GBidirectionalStreamingCall)
To run an instance of ICall, call the execute method of the specific call.
-
The type of the request message for the call.
Declaration
Swift
associatedtype Request : Message -
The type of the response message for the call.
Declaration
Swift
associatedtype Response : Message -
The type of the call closure for the call.
Declaration
Swift
associatedtype CallClosure -
The closure which contains the executable call.
Declaration
Swift
var callClosure: CallClosure { get } -
Options to use for each service call.
Declaration
Swift
var callOptions: CallOptions? { get } -
Executes the current call
Declaration
Swift
func execute() -> AnyPublisher<Response, GRPCStatus>
ICall Protocol Reference