IGClient

public protocol IGClient

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))
  • Undocumented

    Declaration

    Swift

    associatedtype Client : GRPCClientInitializable
  • The GRPCClient this client is using

    Declaration

    Swift

    var service: Client { get }
  • The EventLoopGroup this client is using.

    Declaration

    Swift

    var group: EventLoopGroup { get }
  • Creates a Grebe client

    Declaration

    Swift

    init(target: ConnectionTarget, callOptions: CallOptions)

    Parameters

    target

    The target to connect to.

    callOptions

    Options to use for each service call if the user doesn’t provide them.