120 lines
1.7 KiB
Protocol Buffer
120 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
import "base.proto";
|
|
option go_package = "pkg/proto";
|
|
|
|
message SAddRequest {
|
|
BaseKey key = 1;
|
|
repeated string member = 2;
|
|
}
|
|
|
|
message SAddResponse {
|
|
}
|
|
|
|
message SCardRequest {
|
|
BaseKey key = 1;
|
|
}
|
|
|
|
message SCardResponse {
|
|
int32 length = 1;
|
|
}
|
|
|
|
message SDiffRequest {
|
|
BaseKey key = 1;
|
|
repeated string s_keys = 2;
|
|
}
|
|
|
|
message SDiffResponse {
|
|
repeated string resluts = 2;
|
|
}
|
|
|
|
message SDiffStoreRequest {
|
|
BaseKey key = 1;
|
|
repeated string s_keys = 2;
|
|
string save_key = 3;
|
|
}
|
|
|
|
message SDiffStoreResponse {
|
|
}
|
|
|
|
message SInterRequest {
|
|
BaseKey key = 1;
|
|
repeated string s_keys = 2;
|
|
}
|
|
|
|
message SInterResponse {
|
|
repeated string resluts = 2;
|
|
}
|
|
|
|
message SInterStoreRequest {
|
|
BaseKey key = 1;
|
|
repeated string s_keys = 2;
|
|
string save_key = 3;
|
|
}
|
|
|
|
message SInterStoreResponse {
|
|
}
|
|
|
|
message SIsMemberRequest {
|
|
BaseKey key = 1;
|
|
string member = 2;
|
|
}
|
|
|
|
message SIsMemberResponse {
|
|
bool exist = 1;
|
|
}
|
|
|
|
message SMoveRequest {
|
|
BaseKey key = 1;
|
|
string move_key = 2;
|
|
repeated string members = 3;
|
|
}
|
|
|
|
message SMoveResponse {
|
|
}
|
|
|
|
message SPopRequest {
|
|
BaseKey key = 1;
|
|
int32 count = 2;
|
|
}
|
|
|
|
message SPopResponse {
|
|
repeated string members = 1;
|
|
}
|
|
|
|
message SRemRequest {
|
|
BaseKey key = 1;
|
|
int32 count = 2;
|
|
}
|
|
|
|
message SRemResponse {
|
|
}
|
|
|
|
message SUnionRequest {
|
|
BaseKey key = 1;
|
|
repeated string s_keys = 2;
|
|
}
|
|
|
|
message SUnionResponse {
|
|
repeated string results = 1;
|
|
}
|
|
|
|
message SUnionStoreRequest {
|
|
BaseKey key = 1;
|
|
repeated string s_keys = 2;
|
|
string save_key = 3;
|
|
}
|
|
|
|
message SUnionStoreResponse {
|
|
}
|
|
|
|
message SScanRequest {
|
|
BaseKey key = 1;
|
|
int32 sursor = 2;
|
|
string regexp = 3;
|
|
int32 count = 4;
|
|
}
|
|
|
|
message SScanResponse {
|
|
repeated string results = 1;
|
|
}
|