lease.proto 594 B

123456789101112131415161718192021222324
  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. }
  14. message LeaseInternalRequest {
  15. etcdserverpb.LeaseTimeToLiveRequest LeaseTimeToLiveRequest = 1;
  16. }
  17. message LeaseInternalResponse {
  18. etcdserverpb.LeaseTimeToLiveResponse LeaseTimeToLiveResponse = 1;
  19. }