wheat-cache/protobuf/listx.proto

109 lines
1.4 KiB
Protocol Buffer
Raw Normal View History

2021-10-21 15:57:31 +08:00
syntax = "proto3";
import "base.proto";
option go_package = "pkg/proto";
message LindexRequest {
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 index = 2;
2021-10-21 15:57:31 +08:00
}
message LindexResponse {
2021-10-22 18:15:26 +08:00
string result = 1;
2021-10-21 15:57:31 +08:00
}
message LlenRequest {
BaseKey key = 1;
}
message LlenResponse {
2021-10-22 18:15:26 +08:00
int32 length = 1;
2021-10-21 15:57:31 +08:00
}
message LpopRequest {
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 count = 2;
2021-10-21 15:57:31 +08:00
}
message LpopResponse {
2021-10-22 18:15:26 +08:00
repeated string results = 1;
2021-10-21 15:57:31 +08:00
}
message LpushRequest {
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
message LpushResponse {
}
message LpushxRequest {
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
message LpushxResponse {
}
message LrangeRequest {
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
}
message LrangeResponse {
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
message LremRequest {
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
}
message LremResponse {
2021-10-22 18:15:26 +08:00
int32 count = 1;
2021-10-21 15:57:31 +08:00
}
message LsetRequest {
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
}
message LsetResponse {
}
message RpopRequest {
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
int32 count = 2;
2021-10-21 15:57:31 +08:00
}
message RpopResponse {
}
message LtrimRequest {
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
}
message LtrimResponse {
}
message RpushRequest {
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
message RpushResponse {
}
message RpushxRequest {
BaseKey key = 1;
2021-10-22 18:15:26 +08:00
repeated string values = 2;
2021-10-21 15:57:31 +08:00
}
message RpushxResponse {
}