LeaseKeepAlive 方法
LeaseKeepAlive 方法维持一个租约.
rpc LeaseKeepAlive(stream LeaseKeepAliveRequest) returns (stream LeaseKeepAliveResponse) {}
消息体
请求的消息体是 LeaseKeepAliveRequest:
message LeaseKeepAliveRequest {// ID 是要继续存活的租约的 IDint64 ID = 1;}
应答的消息体是 LeaseKeepAliveResponse:
message LeaseKeepAliveResponse {ResponseHeader header = 1;// ID 是从继续存活请求中得来的租约 IDint64 ID = 2;// TTL是租约新的 time-to-liveint64 TTL = 3;}
