khenaidoo | ab1f7bd | 2019-11-14 14:00:27 -0500 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | package leasepb; |
| 3 | |
| 4 | import "gogoproto/gogo.proto"; |
| 5 | import "etcd/etcdserver/etcdserverpb/rpc.proto"; |
| 6 | |
| 7 | option (gogoproto.marshaler_all) = true; |
| 8 | option (gogoproto.sizer_all) = true; |
| 9 | option (gogoproto.unmarshaler_all) = true; |
| 10 | option (gogoproto.goproto_getters_all) = false; |
| 11 | option (gogoproto.goproto_enum_prefix_all) = false; |
| 12 | |
| 13 | message Lease { |
| 14 | int64 ID = 1; |
| 15 | int64 TTL = 2; |
| 16 | int64 RemainingTTL = 3; |
| 17 | } |
| 18 | |
| 19 | message LeaseInternalRequest { |
| 20 | etcdserverpb.LeaseTimeToLiveRequest LeaseTimeToLiveRequest = 1; |
| 21 | } |
| 22 | |
| 23 | message LeaseInternalResponse { |
| 24 | etcdserverpb.LeaseTimeToLiveResponse LeaseTimeToLiveResponse = 1; |
| 25 | } |