wheat-cache/protobuf/listx.proto

110 lines
1.4 KiB
Protocol Buffer
Raw Permalink Normal View History

2021-10-21 15:57:31 +08:00
syntax = "proto3";
import "base.proto";
option go_package = "pkg/proto";
2021-10-24 00:33:23 +08:00
message LIndexRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 index = 2;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LIndexResponse {
2021-10-22 18:15:26 +08:00
string result = 1;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LLenRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
}
2021-10-24 00:33:23 +08:00
message LLenResponse {
2021-10-22 18:15:26 +08:00
int32 length = 1;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LPopRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 count = 2;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LPopResponse {
2021-10-22 18:15:26 +08:00
repeated string results = 1;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LPushRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LPushResponse {
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LPushXRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LPushXResponse {
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LRangeRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 start = 2;
int32 end = 3;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LRangeResponse {
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LRemRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
// count > 0 头搜索count < 0 尾搜索
int32 count = 2;
string value = 3;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LRemResponse {
2021-10-22 18:15:26 +08:00
int32 count = 1;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LSetRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 index = 2;
string value = 3;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LSetResponse {
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message RPopRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 count = 2;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message RPopResponse {
2021-10-23 16:04:35 +08:00
repeated string result = 1;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LTrimRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 start = 2;
int32 end = 3;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message LTrimResponse {
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message RPushRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message RPushResponse {
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message RPushXRequest {
2021-10-21 15:57:31 +08:00
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
2021-10-24 00:33:23 +08:00
message RPushXResponse {
2021-10-21 15:57:31 +08:00
}