Protocols

The following protocols are available globally.

  • Base protocol for a Grebe call to a gRPC service.

    gRPC lets you define four kinds of service method:

    To run an instance of ICall, call the execute method of the specific call.

    See more

    Declaration

    Swift

    public protocol ICall
  • Classes conforming to this protocol can create a GRPCClient using a ClientConnection and CallOptions.

    See more

    Declaration

    Swift

    public protocol GRPCClientInitializable : GRPCClient
  • A Grebe client

    This client encapsulates a GRPCClient that conforms to GRPCClientInitializable. The GRPCClient is created at initialization. To hide the complexity of a GRPCClient the initializer takes a ConnectionTarget and CallOptions as only parameters.

    Example Usage
    let client = GClient<EchoServiceServiceClient>(target: .hostAndPort("localhost", 62801))
    
    See more

    Declaration

    Swift

    public protocol IGClient