GrpcClientOptions class

gRPC client options.

  • host The gRPC server host.
  • port The gRPC server port.
  • clients A function that receives the created ClientChannel and returns a list of gRPC clients.
  • channelOptions Optional gRPC ChannelOptions to customize the client channel.

Constructors

GrpcClientOptions({String host = 'localhost', int port = 50051, List<Client> clients(ClientChannel channel)?, ChannelOptions? channelOptions})
Creates gRPC client options.

Properties

channelOptions → ChannelOptions?
Optional gRPC ChannelOptions to customize the client channel.
final
clients List<Client> Function(ClientChannel channel)?
A function that receives the created ClientChannel and returns a list of gRPC clients.
final
hashCode int
The hash code for this object.
no setterinherited
host String
The gRPC server host.
final
port int
The gRPC server port.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited