forked from p53841790/wheat-cache
63 lines
863 B
Protocol Buffer
63 lines
863 B
Protocol Buffer
syntax = "proto3";
|
|
import "base.proto";
|
|
option go_package = "pkg/proto";
|
|
|
|
message SetRequest {
|
|
BaseKey key = 1;
|
|
string val = 2;
|
|
}
|
|
|
|
message SetResponse {
|
|
int64 update_size = 1;
|
|
string result = 2;
|
|
}
|
|
|
|
message GetRequest {
|
|
BaseKey key = 1;
|
|
}
|
|
|
|
message GetResponse {
|
|
int64 update_size = 1;
|
|
string result = 2;
|
|
}
|
|
|
|
message AddRequest {
|
|
BaseKey key = 1;
|
|
int32 renewal = 2;
|
|
}
|
|
|
|
message AddResponse {
|
|
int64 update_size = 1;
|
|
string result = 2;
|
|
}
|
|
|
|
message ReduceRequest {
|
|
BaseKey key = 1;
|
|
int32 renewal = 2;
|
|
}
|
|
|
|
message ReduceResponse {
|
|
int64 update_size = 1;
|
|
string result = 2;
|
|
}
|
|
|
|
message SetbitRequest {
|
|
BaseKey key = 1;
|
|
bool val = 2;
|
|
int32 offer = 3;
|
|
}
|
|
|
|
message SetbitResponse {
|
|
int64 update_size = 1;
|
|
}
|
|
|
|
message GetbitRequest {
|
|
BaseKey key = 1;
|
|
int32 offer = 3;
|
|
}
|
|
|
|
message GetbitResponse {
|
|
int64 update_size = 1;
|
|
bool val = 2;
|
|
}
|