lease.proto 620 B

12345678910111213141516171819202122232425
  1. syntax = "proto3";
  2. package leasepb;
  3. import "gogoproto/gogo.proto";
  4. import "etcd/etcdserver/etcdserverpb/rpc.proto";
  5. option (gogoproto.marshaler_all) = true;
  6. option (gogoproto.sizer_all) = true;
  7. option (gogoproto.unmarshaler_all) = true;
  8. option (gogoproto.goproto_getters_all) = false;
  9. option (gogoproto.goproto_enum_prefix_all) = false;
  10. message Lease {
  11. int64 ID = 1;
  12. int64 TTL = 2;
  13. int64 RemainingTTL = 3;
  14. }
  15. message LeaseInternalRequest {
  16. etcdserverpb.LeaseTimeToLiveRequest LeaseTimeToLiveRequest = 1;
  17. }
  18. message LeaseInternalResponse {
  19. etcdserverpb.LeaseTimeToLiveResponse LeaseTimeToLiveResponse = 1;
  20. }