6.6 Client grpc

范式

参考地址6.6 Client grpc - 图1 (opens new window)

名称类型描述
addressstring调用地址
balancerNamestring负载均衡算法
blockbool是否阻塞,默认false
dialTimeouttime连接超时时间、默认0s,不超时

示例

  1. [jupiter.registry.wh]
  2. connectTimeout = "1s"
  3. endpoints=["127.0.0.1:2379"]
  4. secure = false
  5. [jupiter.client.appname]
  6. address = "etcd:///main"
  7. balancerName = "round_robin" # 默认值
  8. block = false # 默认值
  9. dialTimeout = "0s" # 默认值