LeaseKeepAlive 方法

LeaseKeepAlive 方法维持一个租约.

rpc LeaseKeepAlive(stream LeaseKeepAliveRequest) returns (stream LeaseKeepAliveResponse) {}

消息体

请求的消息体是 LeaseKeepAliveRequest

message LeaseKeepAliveRequest {
  // ID 是要继续存活的租约的 ID
  int64 ID = 1;
}

应答的消息体是 LeaseKeepAliveResponse

message LeaseKeepAliveResponse {
  ResponseHeader header = 1;
  // ID 是从继续存活请求中得来的租约 ID
  int64 ID = 2;
  // TTL是租约新的 time-to-live
  int64 TTL = 3;
}

results matching ""

    No results matching ""