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
GRPCClientthis client is usingDeclaration
Swift
var service: Client { get } -
The
EventLoopGroupthis client is using.Declaration
Swift
var group: EventLoopGroup { get } -
Creates a Grebe client
Declaration
Swift
init(target: ConnectionTarget, callOptions: CallOptions)Parameters
targetThe target to connect to.
callOptionsOptions to use for each service call if the user doesn’t provide them.
IGClient Protocol Reference