This commit is contained in:
42
proto/v1/primitives/bool.proto
Normal file
42
proto/v1/primitives/bool.proto
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
package v1.primitives.boolean;
|
||||
|
||||
service BoolCacheService {
|
||||
rpc Create(BoolCreateRequest) returns (BoolCreateResponse);
|
||||
rpc Set(BoolSetRequest) returns (google.protobuf.Empty);
|
||||
rpc Get(BoolGetRequest) returns (BoolGetResponse);
|
||||
rpc Delete(BoolDeleteRequest) returns (BoolDeleteResponse);
|
||||
}
|
||||
|
||||
message BoolCreateRequest {
|
||||
bool value = 1;
|
||||
optional uint32 ttl_seconds = 2;
|
||||
}
|
||||
|
||||
message BoolCreateResponse {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message BoolSetRequest {
|
||||
string id = 1;
|
||||
bool value = 2;
|
||||
}
|
||||
|
||||
message BoolGetRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message BoolGetResponse {
|
||||
bool value = 1;
|
||||
}
|
||||
|
||||
message BoolDeleteRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message BoolDeleteResponse {
|
||||
bool removed_value = 1;
|
||||
}
|
||||
42
proto/v1/primitives/float.proto
Normal file
42
proto/v1/primitives/float.proto
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
package v1.primitives.flt;
|
||||
|
||||
service FloatCacheService {
|
||||
rpc Create(FloatCreateRequest) returns (FloatCreateResponse);
|
||||
rpc Set(FloatSetRequest) returns (google.protobuf.Empty);
|
||||
rpc Get(FloatGetRequest) returns (FloatGetResponse);
|
||||
rpc Delete(FloatDeleteRequest) returns (FloatDeleteResponse);
|
||||
}
|
||||
|
||||
message FloatCreateRequest {
|
||||
double value = 1;
|
||||
optional uint32 ttl_seconds = 2;
|
||||
}
|
||||
|
||||
message FloatCreateResponse {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message FloatSetRequest {
|
||||
string id = 1;
|
||||
double value = 2;
|
||||
}
|
||||
|
||||
message FloatGetRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message FloatGetResponse {
|
||||
double value = 1;
|
||||
}
|
||||
|
||||
message FloatDeleteRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message FloatDeleteResponse {
|
||||
double removed_value = 1;
|
||||
}
|
||||
42
proto/v1/primitives/int.proto
Normal file
42
proto/v1/primitives/int.proto
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
package v1.primitives.integer;
|
||||
|
||||
service IntCacheService {
|
||||
rpc Create(IntCreateRequest) returns (IntCreateResponse);
|
||||
rpc Set(IntSetRequest) returns (google.protobuf.Empty);
|
||||
rpc Get(IntGetRequest) returns (IntGetResponse);
|
||||
rpc Delete(IntDeleteRequest) returns (IntDeleteResponse);
|
||||
}
|
||||
|
||||
message IntCreateRequest {
|
||||
int64 value = 1;
|
||||
optional uint32 ttl_seconds = 2;
|
||||
}
|
||||
|
||||
message IntCreateResponse {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message IntSetRequest {
|
||||
string id = 1;
|
||||
int64 value = 2;
|
||||
}
|
||||
|
||||
message IntGetRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message IntGetResponse {
|
||||
int64 value = 1;
|
||||
}
|
||||
|
||||
message IntDeleteRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message IntDeleteResponse {
|
||||
int64 removed_value = 1;
|
||||
}
|
||||
42
proto/v1/primitives/string.proto
Normal file
42
proto/v1/primitives/string.proto
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
package v1.primitives.str;
|
||||
|
||||
service StringCacheService {
|
||||
rpc Create(StringCreateRequest) returns (StringCreateResponse);
|
||||
rpc Set(StringSetRequest) returns (google.protobuf.Empty);
|
||||
rpc Get(StringGetRequest) returns (StringGetResponse);
|
||||
rpc Delete(StringDeleteRequest) returns (StringDeleteResponse);
|
||||
}
|
||||
|
||||
message StringCreateRequest {
|
||||
string value = 1;
|
||||
optional uint32 ttl_seconds = 2;
|
||||
}
|
||||
|
||||
message StringCreateResponse {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message StringSetRequest {
|
||||
string id = 1;
|
||||
string value = 2;
|
||||
}
|
||||
|
||||
message StringGetRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message StringGetResponse {
|
||||
string value = 1;
|
||||
}
|
||||
|
||||
message StringDeleteRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message StringDeleteResponse {
|
||||
string removed_value = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user