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