2021-09-21 20:59:19 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
import "base.proto";
|
|
|
|
option go_package = "pkg/proto";
|
|
|
|
|
|
|
|
message SetRequest {
|
|
|
|
BaseKey key = 1;
|
2021-09-25 14:52:42 +08:00
|
|
|
string val = 2;
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
|
2021-09-25 23:38:19 +08:00
|
|
|
message SetResponse {
|
|
|
|
int64 update_size = 1;
|
|
|
|
string result = 2;
|
|
|
|
}
|
|
|
|
|
2021-09-21 20:59:19 +08:00
|
|
|
message GetRequest {
|
|
|
|
BaseKey key = 1;
|
|
|
|
}
|
|
|
|
|
2021-09-25 23:38:19 +08:00
|
|
|
message GetResponse {
|
|
|
|
int64 update_size = 1;
|
|
|
|
string result = 2;
|
|
|
|
}
|
|
|
|
|
2021-09-21 20:59:19 +08:00
|
|
|
message AddRequest {
|
|
|
|
BaseKey key = 1;
|
2021-09-25 23:38:19 +08:00
|
|
|
int32 renewal = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AddResponse {
|
|
|
|
int64 update_size = 1;
|
|
|
|
string result = 2;
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message ReduceRequest {
|
|
|
|
BaseKey key = 1;
|
2021-09-25 23:38:19 +08:00
|
|
|
int32 renewal = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReduceResponse {
|
|
|
|
int64 update_size = 1;
|
|
|
|
string result = 2;
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message SetbitRequest {
|
|
|
|
BaseKey key = 1;
|
2021-09-25 23:38:19 +08:00
|
|
|
bool val = 2;
|
|
|
|
int32 offer = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetbitResponse {
|
|
|
|
int64 update_size = 1;
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetbitRequest {
|
|
|
|
BaseKey key = 1;
|
2021-09-25 23:38:19 +08:00
|
|
|
int32 offer = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetbitResponse {
|
|
|
|
int64 update_size = 1;
|
|
|
|
bool val = 2;
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|