2021-09-21 20:59:19 +08:00
|
|
|
// Code generated by gen-struct. DO NOT EDIT.
|
|
|
|
// make gen-protobuf generated
|
|
|
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.26.0
|
|
|
|
// protoc v3.17.3
|
|
|
|
// source: storage.proto
|
|
|
|
|
|
|
|
package proto
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
|
|
|
|
|
|
|
var File_storage_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_storage_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
2021-10-21 15:57:31 +08:00
|
|
|
0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b,
|
|
|
|
0x6c, 0x69, 0x73, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xff, 0x06, 0x0a, 0x0a,
|
|
|
|
0x43, 0x6f, 0x6d, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x03, 0x53, 0x65,
|
|
|
|
0x74, 0x12, 0x0b, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0c,
|
|
|
|
0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x03,
|
|
|
|
0x47, 0x65, 0x74, 0x12, 0x0b, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x1a, 0x0c, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20,
|
|
|
|
0x0a, 0x03, 0x41, 0x64, 0x64, 0x12, 0x0b, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x1a, 0x0c, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x12, 0x29, 0x0a, 0x06, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x12, 0x0e, 0x2e, 0x52, 0x65, 0x64,
|
|
|
|
0x75, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x52, 0x65, 0x64,
|
|
|
|
0x75, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x53,
|
2021-10-24 00:33:23 +08:00
|
|
|
0x65, 0x74, 0x42, 0x69, 0x74, 0x12, 0x0e, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x69, 0x74, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x69, 0x74, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x42, 0x69, 0x74,
|
|
|
|
0x12, 0x0e, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x1a, 0x0f, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x12, 0x2f, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x10, 0x2e,
|
|
|
|
0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
|
|
0x11, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
0x73, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x12, 0x0e, 0x2e, 0x47,
|
|
|
|
0x65, 0x74, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x47,
|
|
|
|
0x65, 0x74, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a,
|
|
|
|
0x06, 0x53, 0x74, 0x72, 0x4c, 0x65, 0x6e, 0x12, 0x0e, 0x2e, 0x53, 0x74, 0x72, 0x4c, 0x65, 0x6e,
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x53, 0x74, 0x72, 0x4c, 0x65, 0x6e,
|
2021-10-21 15:57:31 +08:00
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x53, 0x65, 0x74, 0x6e,
|
|
|
|
0x78, 0x12, 0x0d, 0x2e, 0x53, 0x65, 0x74, 0x6e, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x1a, 0x0e, 0x2e, 0x53, 0x65, 0x74, 0x6e, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
2021-10-24 00:33:23 +08:00
|
|
|
0x12, 0x29, 0x0a, 0x06, 0x4c, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x0e, 0x2e, 0x4c, 0x49, 0x6e,
|
|
|
|
0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x4c, 0x49, 0x6e,
|
2021-10-21 15:57:31 +08:00
|
|
|
0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x4c,
|
2021-10-24 00:33:23 +08:00
|
|
|
0x4c, 0x65, 0x6e, 0x12, 0x0c, 0x2e, 0x4c, 0x4c, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
0x74, 0x1a, 0x0d, 0x2e, 0x4c, 0x4c, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x12, 0x23, 0x0a, 0x04, 0x4c, 0x50, 0x6f, 0x70, 0x12, 0x0c, 0x2e, 0x4c, 0x50, 0x6f, 0x70, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x4c, 0x50, 0x6f, 0x70, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x4c, 0x50, 0x75, 0x73, 0x68, 0x12, 0x0d,
|
|
|
|
0x2e, 0x4c, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
|
|
|
|
0x4c, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a,
|
|
|
|
0x06, 0x4c, 0x50, 0x75, 0x73, 0x68, 0x58, 0x12, 0x0e, 0x2e, 0x4c, 0x50, 0x75, 0x73, 0x68, 0x58,
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x4c, 0x50, 0x75, 0x73, 0x68, 0x58,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x4c, 0x52, 0x61, 0x6e,
|
|
|
|
0x67, 0x65, 0x12, 0x0e, 0x2e, 0x4c, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x4c, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x4c, 0x52, 0x65, 0x6d, 0x12, 0x0c, 0x2e, 0x4c, 0x52,
|
|
|
|
0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x4c, 0x52, 0x65, 0x6d,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x4c, 0x53, 0x65, 0x74,
|
|
|
|
0x12, 0x0c, 0x2e, 0x4c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d,
|
|
|
|
0x2e, 0x4c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a,
|
|
|
|
0x04, 0x52, 0x50, 0x6f, 0x70, 0x12, 0x0c, 0x2e, 0x52, 0x50, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x52, 0x50, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x4c, 0x54, 0x72, 0x69, 0x6d, 0x12, 0x0d, 0x2e, 0x4c, 0x54,
|
|
|
|
0x72, 0x69, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x4c, 0x54, 0x72,
|
|
|
|
0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x52, 0x50,
|
|
|
|
0x75, 0x73, 0x68, 0x12, 0x0d, 0x2e, 0x52, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x52, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
0x73, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x52, 0x50, 0x75, 0x73, 0x68, 0x58, 0x12, 0x0e, 0x2e, 0x52,
|
|
|
|
0x50, 0x75, 0x73, 0x68, 0x58, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x52,
|
|
|
|
0x50, 0x75, 0x73, 0x68, 0x58, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0b, 0x5a,
|
2021-10-21 15:57:31 +08:00
|
|
|
0x09, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x6f, 0x33,
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var file_storage_proto_goTypes = []interface{}{
|
2021-10-20 20:30:51 +08:00
|
|
|
(*SetRequest)(nil), // 0: SetRequest
|
|
|
|
(*GetRequest)(nil), // 1: GetRequest
|
|
|
|
(*AddRequest)(nil), // 2: AddRequest
|
|
|
|
(*ReduceRequest)(nil), // 3: ReduceRequest
|
2021-10-24 00:33:23 +08:00
|
|
|
(*SetBitRequest)(nil), // 4: SetBitRequest
|
|
|
|
(*GetBitRequest)(nil), // 5: GetBitRequest
|
|
|
|
(*GetRangeRequest)(nil), // 6: GetRangeRequest
|
|
|
|
(*GetSetRequest)(nil), // 7: GetSetRequest
|
|
|
|
(*StrLenRequest)(nil), // 8: StrLenRequest
|
2021-10-20 20:30:51 +08:00
|
|
|
(*SetnxRequest)(nil), // 9: SetnxRequest
|
2021-10-24 00:33:23 +08:00
|
|
|
(*LIndexRequest)(nil), // 10: LIndexRequest
|
|
|
|
(*LLenRequest)(nil), // 11: LLenRequest
|
|
|
|
(*LPopRequest)(nil), // 12: LPopRequest
|
|
|
|
(*LPushRequest)(nil), // 13: LPushRequest
|
|
|
|
(*LPushXRequest)(nil), // 14: LPushXRequest
|
|
|
|
(*LRangeRequest)(nil), // 15: LRangeRequest
|
|
|
|
(*LRemRequest)(nil), // 16: LRemRequest
|
|
|
|
(*LSetRequest)(nil), // 17: LSetRequest
|
|
|
|
(*RPopRequest)(nil), // 18: RPopRequest
|
|
|
|
(*LTrimRequest)(nil), // 19: LTrimRequest
|
|
|
|
(*RPushRequest)(nil), // 20: RPushRequest
|
|
|
|
(*RPushXRequest)(nil), // 21: RPushXRequest
|
2021-10-21 15:57:31 +08:00
|
|
|
(*SetResponse)(nil), // 22: SetResponse
|
|
|
|
(*GetResponse)(nil), // 23: GetResponse
|
|
|
|
(*AddResponse)(nil), // 24: AddResponse
|
|
|
|
(*ReduceResponse)(nil), // 25: ReduceResponse
|
2021-10-24 00:33:23 +08:00
|
|
|
(*SetBitResponse)(nil), // 26: SetBitResponse
|
|
|
|
(*GetBitResponse)(nil), // 27: GetBitResponse
|
|
|
|
(*GetRangeResponse)(nil), // 28: GetRangeResponse
|
|
|
|
(*GetSetResponse)(nil), // 29: GetSetResponse
|
|
|
|
(*StrLenResponse)(nil), // 30: StrLenResponse
|
2021-10-21 15:57:31 +08:00
|
|
|
(*SetnxResponse)(nil), // 31: SetnxResponse
|
2021-10-24 00:33:23 +08:00
|
|
|
(*LIndexResponse)(nil), // 32: LIndexResponse
|
|
|
|
(*LLenResponse)(nil), // 33: LLenResponse
|
|
|
|
(*LPopResponse)(nil), // 34: LPopResponse
|
|
|
|
(*LPushResponse)(nil), // 35: LPushResponse
|
|
|
|
(*LPushXResponse)(nil), // 36: LPushXResponse
|
|
|
|
(*LRangeResponse)(nil), // 37: LRangeResponse
|
|
|
|
(*LRemResponse)(nil), // 38: LRemResponse
|
|
|
|
(*LSetResponse)(nil), // 39: LSetResponse
|
|
|
|
(*RPopResponse)(nil), // 40: RPopResponse
|
|
|
|
(*LTrimResponse)(nil), // 41: LTrimResponse
|
|
|
|
(*RPushResponse)(nil), // 42: RPushResponse
|
|
|
|
(*RPushXResponse)(nil), // 43: RPushXResponse
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
var file_storage_proto_depIdxs = []int32{
|
2021-09-25 23:38:19 +08:00
|
|
|
0, // 0: CommServer.Set:input_type -> SetRequest
|
|
|
|
1, // 1: CommServer.Get:input_type -> GetRequest
|
|
|
|
2, // 2: CommServer.Add:input_type -> AddRequest
|
|
|
|
3, // 3: CommServer.Reduce:input_type -> ReduceRequest
|
2021-10-24 00:33:23 +08:00
|
|
|
4, // 4: CommServer.SetBit:input_type -> SetBitRequest
|
|
|
|
5, // 5: CommServer.GetBit:input_type -> GetBitRequest
|
|
|
|
6, // 6: CommServer.GetRange:input_type -> GetRangeRequest
|
|
|
|
7, // 7: CommServer.GetSet:input_type -> GetSetRequest
|
|
|
|
8, // 8: CommServer.StrLen:input_type -> StrLenRequest
|
2021-10-20 20:30:51 +08:00
|
|
|
9, // 9: CommServer.Setnx:input_type -> SetnxRequest
|
2021-10-24 00:33:23 +08:00
|
|
|
10, // 10: CommServer.LIndex:input_type -> LIndexRequest
|
|
|
|
11, // 11: CommServer.LLen:input_type -> LLenRequest
|
|
|
|
12, // 12: CommServer.LPop:input_type -> LPopRequest
|
|
|
|
13, // 13: CommServer.LPush:input_type -> LPushRequest
|
|
|
|
14, // 14: CommServer.LPushX:input_type -> LPushXRequest
|
|
|
|
15, // 15: CommServer.LRange:input_type -> LRangeRequest
|
|
|
|
16, // 16: CommServer.LRem:input_type -> LRemRequest
|
|
|
|
17, // 17: CommServer.LSet:input_type -> LSetRequest
|
|
|
|
18, // 18: CommServer.RPop:input_type -> RPopRequest
|
|
|
|
19, // 19: CommServer.LTrim:input_type -> LTrimRequest
|
|
|
|
20, // 20: CommServer.RPush:input_type -> RPushRequest
|
|
|
|
21, // 21: CommServer.RPushX:input_type -> RPushXRequest
|
2021-10-21 15:57:31 +08:00
|
|
|
22, // 22: CommServer.Set:output_type -> SetResponse
|
|
|
|
23, // 23: CommServer.Get:output_type -> GetResponse
|
|
|
|
24, // 24: CommServer.Add:output_type -> AddResponse
|
|
|
|
25, // 25: CommServer.Reduce:output_type -> ReduceResponse
|
2021-10-24 00:33:23 +08:00
|
|
|
26, // 26: CommServer.SetBit:output_type -> SetBitResponse
|
|
|
|
27, // 27: CommServer.GetBit:output_type -> GetBitResponse
|
|
|
|
28, // 28: CommServer.GetRange:output_type -> GetRangeResponse
|
|
|
|
29, // 29: CommServer.GetSet:output_type -> GetSetResponse
|
|
|
|
30, // 30: CommServer.StrLen:output_type -> StrLenResponse
|
2021-10-21 15:57:31 +08:00
|
|
|
31, // 31: CommServer.Setnx:output_type -> SetnxResponse
|
2021-10-24 00:33:23 +08:00
|
|
|
32, // 32: CommServer.LIndex:output_type -> LIndexResponse
|
|
|
|
33, // 33: CommServer.LLen:output_type -> LLenResponse
|
|
|
|
34, // 34: CommServer.LPop:output_type -> LPopResponse
|
|
|
|
35, // 35: CommServer.LPush:output_type -> LPushResponse
|
|
|
|
36, // 36: CommServer.LPushX:output_type -> LPushXResponse
|
|
|
|
37, // 37: CommServer.LRange:output_type -> LRangeResponse
|
|
|
|
38, // 38: CommServer.LRem:output_type -> LRemResponse
|
|
|
|
39, // 39: CommServer.LSet:output_type -> LSetResponse
|
|
|
|
40, // 40: CommServer.RPop:output_type -> RPopResponse
|
|
|
|
41, // 41: CommServer.LTrim:output_type -> LTrimResponse
|
|
|
|
42, // 42: CommServer.RPush:output_type -> RPushResponse
|
|
|
|
43, // 43: CommServer.RPushX:output_type -> RPushXResponse
|
2021-10-21 15:57:31 +08:00
|
|
|
22, // [22:44] is the sub-list for method output_type
|
|
|
|
0, // [0:22] is the sub-list for method input_type
|
2021-09-25 23:38:19 +08:00
|
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
|
|
0, // [0:0] is the sub-list for field type_name
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_storage_proto_init() }
|
|
|
|
func file_storage_proto_init() {
|
|
|
|
if File_storage_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
file_stringx_proto_init()
|
2021-10-21 15:57:31 +08:00
|
|
|
file_listx_proto_init()
|
2021-09-21 20:59:19 +08:00
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_storage_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
2021-09-25 23:38:19 +08:00
|
|
|
NumMessages: 0,
|
2021-09-21 20:59:19 +08:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_storage_proto_goTypes,
|
|
|
|
DependencyIndexes: file_storage_proto_depIdxs,
|
|
|
|
}.Build()
|
|
|
|
File_storage_proto = out.File
|
|
|
|
file_storage_proto_rawDesc = nil
|
|
|
|
file_storage_proto_goTypes = nil
|
|
|
|
file_storage_proto_depIdxs = nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConnInterface
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
|
|
|
// CommServerClient is the client API for CommServer service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type CommServerClient interface {
|
2021-09-25 23:38:19 +08:00
|
|
|
Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
|
|
|
|
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
|
|
|
|
Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
|
|
|
|
Reduce(ctx context.Context, in *ReduceRequest, opts ...grpc.CallOption) (*ReduceResponse, error)
|
2021-10-24 00:33:23 +08:00
|
|
|
SetBit(ctx context.Context, in *SetBitRequest, opts ...grpc.CallOption) (*SetBitResponse, error)
|
|
|
|
GetBit(ctx context.Context, in *GetBitRequest, opts ...grpc.CallOption) (*GetBitResponse, error)
|
|
|
|
GetRange(ctx context.Context, in *GetRangeRequest, opts ...grpc.CallOption) (*GetRangeResponse, error)
|
|
|
|
GetSet(ctx context.Context, in *GetSetRequest, opts ...grpc.CallOption) (*GetSetResponse, error)
|
|
|
|
StrLen(ctx context.Context, in *StrLenRequest, opts ...grpc.CallOption) (*StrLenResponse, error)
|
2021-10-20 20:30:51 +08:00
|
|
|
Setnx(ctx context.Context, in *SetnxRequest, opts ...grpc.CallOption) (*SetnxResponse, error)
|
2021-10-24 00:33:23 +08:00
|
|
|
LIndex(ctx context.Context, in *LIndexRequest, opts ...grpc.CallOption) (*LIndexResponse, error)
|
|
|
|
LLen(ctx context.Context, in *LLenRequest, opts ...grpc.CallOption) (*LLenResponse, error)
|
|
|
|
LPop(ctx context.Context, in *LPopRequest, opts ...grpc.CallOption) (*LPopResponse, error)
|
|
|
|
LPush(ctx context.Context, in *LPushRequest, opts ...grpc.CallOption) (*LPushResponse, error)
|
|
|
|
LPushX(ctx context.Context, in *LPushXRequest, opts ...grpc.CallOption) (*LPushXResponse, error)
|
|
|
|
LRange(ctx context.Context, in *LRangeRequest, opts ...grpc.CallOption) (*LRangeResponse, error)
|
|
|
|
LRem(ctx context.Context, in *LRemRequest, opts ...grpc.CallOption) (*LRemResponse, error)
|
|
|
|
LSet(ctx context.Context, in *LSetRequest, opts ...grpc.CallOption) (*LSetResponse, error)
|
|
|
|
RPop(ctx context.Context, in *RPopRequest, opts ...grpc.CallOption) (*RPopResponse, error)
|
|
|
|
LTrim(ctx context.Context, in *LTrimRequest, opts ...grpc.CallOption) (*LTrimResponse, error)
|
|
|
|
RPush(ctx context.Context, in *RPushRequest, opts ...grpc.CallOption) (*RPushResponse, error)
|
|
|
|
RPushX(ctx context.Context, in *RPushXRequest, opts ...grpc.CallOption) (*RPushXResponse, error)
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type commServerClient struct {
|
|
|
|
cc grpc.ClientConnInterface
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewCommServerClient(cc grpc.ClientConnInterface) CommServerClient {
|
|
|
|
return &commServerClient{cc}
|
|
|
|
}
|
|
|
|
|
2021-09-25 23:38:19 +08:00
|
|
|
func (c *commServerClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) {
|
|
|
|
out := new(SetResponse)
|
2021-09-21 20:59:19 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/Set", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-09-25 23:38:19 +08:00
|
|
|
func (c *commServerClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
|
|
|
|
out := new(GetResponse)
|
2021-09-21 20:59:19 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/Get", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-09-25 23:38:19 +08:00
|
|
|
func (c *commServerClient) Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) {
|
|
|
|
out := new(AddResponse)
|
2021-09-21 20:59:19 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/Add", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-09-25 23:38:19 +08:00
|
|
|
func (c *commServerClient) Reduce(ctx context.Context, in *ReduceRequest, opts ...grpc.CallOption) (*ReduceResponse, error) {
|
|
|
|
out := new(ReduceResponse)
|
2021-09-21 20:59:19 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/Reduce", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) SetBit(ctx context.Context, in *SetBitRequest, opts ...grpc.CallOption) (*SetBitResponse, error) {
|
|
|
|
out := new(SetBitResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/SetBit", in, out, opts...)
|
2021-09-21 20:59:19 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) GetBit(ctx context.Context, in *GetBitRequest, opts ...grpc.CallOption) (*GetBitResponse, error) {
|
|
|
|
out := new(GetBitResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/GetBit", in, out, opts...)
|
2021-09-21 20:59:19 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) GetRange(ctx context.Context, in *GetRangeRequest, opts ...grpc.CallOption) (*GetRangeResponse, error) {
|
|
|
|
out := new(GetRangeResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/GetRange", in, out, opts...)
|
2021-10-20 20:30:51 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) GetSet(ctx context.Context, in *GetSetRequest, opts ...grpc.CallOption) (*GetSetResponse, error) {
|
|
|
|
out := new(GetSetResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/GetSet", in, out, opts...)
|
2021-10-20 20:30:51 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) StrLen(ctx context.Context, in *StrLenRequest, opts ...grpc.CallOption) (*StrLenResponse, error) {
|
|
|
|
out := new(StrLenResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/StrLen", in, out, opts...)
|
2021-10-20 20:30:51 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *commServerClient) Setnx(ctx context.Context, in *SetnxRequest, opts ...grpc.CallOption) (*SetnxResponse, error) {
|
|
|
|
out := new(SetnxResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/Setnx", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LIndex(ctx context.Context, in *LIndexRequest, opts ...grpc.CallOption) (*LIndexResponse, error) {
|
|
|
|
out := new(LIndexResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LIndex", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LLen(ctx context.Context, in *LLenRequest, opts ...grpc.CallOption) (*LLenResponse, error) {
|
|
|
|
out := new(LLenResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LLen", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LPop(ctx context.Context, in *LPopRequest, opts ...grpc.CallOption) (*LPopResponse, error) {
|
|
|
|
out := new(LPopResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LPop", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LPush(ctx context.Context, in *LPushRequest, opts ...grpc.CallOption) (*LPushResponse, error) {
|
|
|
|
out := new(LPushResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LPush", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LPushX(ctx context.Context, in *LPushXRequest, opts ...grpc.CallOption) (*LPushXResponse, error) {
|
|
|
|
out := new(LPushXResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LPushX", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LRange(ctx context.Context, in *LRangeRequest, opts ...grpc.CallOption) (*LRangeResponse, error) {
|
|
|
|
out := new(LRangeResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LRange", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LRem(ctx context.Context, in *LRemRequest, opts ...grpc.CallOption) (*LRemResponse, error) {
|
|
|
|
out := new(LRemResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LRem", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LSet(ctx context.Context, in *LSetRequest, opts ...grpc.CallOption) (*LSetResponse, error) {
|
|
|
|
out := new(LSetResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LSet", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) RPop(ctx context.Context, in *RPopRequest, opts ...grpc.CallOption) (*RPopResponse, error) {
|
|
|
|
out := new(RPopResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/RPop", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) LTrim(ctx context.Context, in *LTrimRequest, opts ...grpc.CallOption) (*LTrimResponse, error) {
|
|
|
|
out := new(LTrimResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/LTrim", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) RPush(ctx context.Context, in *RPushRequest, opts ...grpc.CallOption) (*RPushResponse, error) {
|
|
|
|
out := new(RPushResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/RPush", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func (c *commServerClient) RPushX(ctx context.Context, in *RPushXRequest, opts ...grpc.CallOption) (*RPushXResponse, error) {
|
|
|
|
out := new(RPushXResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/CommServer/RPushX", in, out, opts...)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-09-21 20:59:19 +08:00
|
|
|
// CommServerServer is the server API for CommServer service.
|
|
|
|
type CommServerServer interface {
|
2021-09-25 23:38:19 +08:00
|
|
|
Set(context.Context, *SetRequest) (*SetResponse, error)
|
|
|
|
Get(context.Context, *GetRequest) (*GetResponse, error)
|
|
|
|
Add(context.Context, *AddRequest) (*AddResponse, error)
|
|
|
|
Reduce(context.Context, *ReduceRequest) (*ReduceResponse, error)
|
2021-10-24 00:33:23 +08:00
|
|
|
SetBit(context.Context, *SetBitRequest) (*SetBitResponse, error)
|
|
|
|
GetBit(context.Context, *GetBitRequest) (*GetBitResponse, error)
|
|
|
|
GetRange(context.Context, *GetRangeRequest) (*GetRangeResponse, error)
|
|
|
|
GetSet(context.Context, *GetSetRequest) (*GetSetResponse, error)
|
|
|
|
StrLen(context.Context, *StrLenRequest) (*StrLenResponse, error)
|
2021-10-20 20:30:51 +08:00
|
|
|
Setnx(context.Context, *SetnxRequest) (*SetnxResponse, error)
|
2021-10-24 00:33:23 +08:00
|
|
|
LIndex(context.Context, *LIndexRequest) (*LIndexResponse, error)
|
|
|
|
LLen(context.Context, *LLenRequest) (*LLenResponse, error)
|
|
|
|
LPop(context.Context, *LPopRequest) (*LPopResponse, error)
|
|
|
|
LPush(context.Context, *LPushRequest) (*LPushResponse, error)
|
|
|
|
LPushX(context.Context, *LPushXRequest) (*LPushXResponse, error)
|
|
|
|
LRange(context.Context, *LRangeRequest) (*LRangeResponse, error)
|
|
|
|
LRem(context.Context, *LRemRequest) (*LRemResponse, error)
|
|
|
|
LSet(context.Context, *LSetRequest) (*LSetResponse, error)
|
|
|
|
RPop(context.Context, *RPopRequest) (*RPopResponse, error)
|
|
|
|
LTrim(context.Context, *LTrimRequest) (*LTrimResponse, error)
|
|
|
|
RPush(context.Context, *RPushRequest) (*RPushResponse, error)
|
|
|
|
RPushX(context.Context, *RPushXRequest) (*RPushXResponse, error)
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedCommServerServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedCommServerServer struct {
|
|
|
|
}
|
|
|
|
|
2021-09-25 23:38:19 +08:00
|
|
|
func (*UnimplementedCommServerServer) Set(context.Context, *SetRequest) (*SetResponse, error) {
|
2021-09-21 20:59:19 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Set not implemented")
|
|
|
|
}
|
2021-09-25 23:38:19 +08:00
|
|
|
func (*UnimplementedCommServerServer) Get(context.Context, *GetRequest) (*GetResponse, error) {
|
2021-09-21 20:59:19 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
|
|
|
}
|
2021-09-25 23:38:19 +08:00
|
|
|
func (*UnimplementedCommServerServer) Add(context.Context, *AddRequest) (*AddResponse, error) {
|
2021-09-21 20:59:19 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Add not implemented")
|
|
|
|
}
|
2021-09-25 23:38:19 +08:00
|
|
|
func (*UnimplementedCommServerServer) Reduce(context.Context, *ReduceRequest) (*ReduceResponse, error) {
|
2021-09-21 20:59:19 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Reduce not implemented")
|
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) SetBit(context.Context, *SetBitRequest) (*SetBitResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SetBit not implemented")
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) GetBit(context.Context, *GetBitRequest) (*GetBitResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBit not implemented")
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) GetRange(context.Context, *GetRangeRequest) (*GetRangeResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetRange not implemented")
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) GetSet(context.Context, *GetSetRequest) (*GetSetResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetSet not implemented")
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) StrLen(context.Context, *StrLenRequest) (*StrLenResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method StrLen not implemented")
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
func (*UnimplementedCommServerServer) Setnx(context.Context, *SetnxRequest) (*SetnxResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Setnx not implemented")
|
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LIndex(context.Context, *LIndexRequest) (*LIndexResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LIndex not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LLen(context.Context, *LLenRequest) (*LLenResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LLen not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LPop(context.Context, *LPopRequest) (*LPopResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LPop not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LPush(context.Context, *LPushRequest) (*LPushResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LPush not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LPushX(context.Context, *LPushXRequest) (*LPushXResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LPushX not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LRange(context.Context, *LRangeRequest) (*LRangeResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LRange not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LRem(context.Context, *LRemRequest) (*LRemResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LRem not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LSet(context.Context, *LSetRequest) (*LSetResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LSet not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) RPop(context.Context, *RPopRequest) (*RPopResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RPop not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) LTrim(context.Context, *LTrimRequest) (*LTrimResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LTrim not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) RPush(context.Context, *RPushRequest) (*RPushResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RPush not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-10-24 00:33:23 +08:00
|
|
|
func (*UnimplementedCommServerServer) RPushX(context.Context, *RPushXRequest) (*RPushXResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RPushX not implemented")
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
2021-09-21 20:59:19 +08:00
|
|
|
|
|
|
|
func RegisterCommServerServer(s *grpc.Server, srv CommServerServer) {
|
|
|
|
s.RegisterService(&_CommServer_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _CommServer_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SetRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(CommServerServer).Set(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/CommServer/Set",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(CommServerServer).Set(ctx, req.(*SetRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _CommServer_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(CommServerServer).Get(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/CommServer/Get",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(CommServerServer).Get(ctx, req.(*GetRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _CommServer_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(AddRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(CommServerServer).Add(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/CommServer/Add",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(CommServerServer).Add(ctx, req.(*AddRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _CommServer_Reduce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ReduceRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(CommServerServer).Reduce(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/CommServer/Reduce",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(CommServerServer).Reduce(ctx, req.(*ReduceRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_SetBit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SetBitRequest)
|
2021-09-21 20:59:19 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).SetBit(ctx, in)
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/SetBit",
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).SetBit(ctx, req.(*SetBitRequest))
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_GetBit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetBitRequest)
|
2021-09-21 20:59:19 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).GetBit(ctx, in)
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/GetBit",
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).GetBit(ctx, req.(*GetBitRequest))
|
2021-09-21 20:59:19 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_GetRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetRangeRequest)
|
2021-10-20 20:30:51 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).GetRange(ctx, in)
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/GetRange",
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).GetRange(ctx, req.(*GetRangeRequest))
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_GetSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetSetRequest)
|
2021-10-20 20:30:51 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).GetSet(ctx, in)
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/GetSet",
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).GetSet(ctx, req.(*GetSetRequest))
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_StrLen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(StrLenRequest)
|
2021-10-20 20:30:51 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).StrLen(ctx, in)
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/StrLen",
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).StrLen(ctx, req.(*StrLenRequest))
|
2021-10-20 20:30:51 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _CommServer_Setnx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SetnxRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(CommServerServer).Setnx(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/CommServer/Setnx",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(CommServerServer).Setnx(ctx, req.(*SetnxRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LIndexRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LIndex(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LIndex",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LIndex(ctx, req.(*LIndexRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LLen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LLenRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LLen(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LLen",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LLen(ctx, req.(*LLenRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LPop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LPopRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LPop(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LPop",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LPop(ctx, req.(*LPopRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LPush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LPushRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LPush(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LPush",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LPush(ctx, req.(*LPushRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LPushX_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LPushXRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LPushX(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LPushX",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LPushX(ctx, req.(*LPushXRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LRangeRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LRange(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LRange",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LRange(ctx, req.(*LRangeRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LRem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LRemRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LRem(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LRem",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LRem(ctx, req.(*LRemRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LSetRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LSet(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LSet",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LSet(ctx, req.(*LSetRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_RPop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(RPopRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).RPop(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/RPop",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).RPop(ctx, req.(*RPopRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_LTrim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LTrimRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LTrim(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/LTrim",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).LTrim(ctx, req.(*LTrimRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_RPush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(RPushRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).RPush(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/RPush",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).RPush(ctx, req.(*RPushRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-10-24 00:33:23 +08:00
|
|
|
func _CommServer_RPushX_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(RPushXRequest)
|
2021-10-21 15:57:31 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).RPushX(ctx, in)
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-10-24 00:33:23 +08:00
|
|
|
FullMethod: "/CommServer/RPushX",
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-10-24 00:33:23 +08:00
|
|
|
return srv.(CommServerServer).RPushX(ctx, req.(*RPushXRequest))
|
2021-10-21 15:57:31 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-09-21 20:59:19 +08:00
|
|
|
var _CommServer_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "CommServer",
|
|
|
|
HandlerType: (*CommServerServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Set",
|
|
|
|
Handler: _CommServer_Set_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Get",
|
|
|
|
Handler: _CommServer_Get_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Add",
|
|
|
|
Handler: _CommServer_Add_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Reduce",
|
|
|
|
Handler: _CommServer_Reduce_Handler,
|
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "SetBit",
|
|
|
|
Handler: _CommServer_SetBit_Handler,
|
2021-09-21 20:59:19 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "GetBit",
|
|
|
|
Handler: _CommServer_GetBit_Handler,
|
2021-09-21 20:59:19 +08:00
|
|
|
},
|
2021-10-20 20:30:51 +08:00
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "GetRange",
|
|
|
|
Handler: _CommServer_GetRange_Handler,
|
2021-10-20 20:30:51 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "GetSet",
|
|
|
|
Handler: _CommServer_GetSet_Handler,
|
2021-10-20 20:30:51 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "StrLen",
|
|
|
|
Handler: _CommServer_StrLen_Handler,
|
2021-10-20 20:30:51 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Setnx",
|
|
|
|
Handler: _CommServer_Setnx_Handler,
|
|
|
|
},
|
2021-10-21 15:57:31 +08:00
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LIndex",
|
|
|
|
Handler: _CommServer_LIndex_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LLen",
|
|
|
|
Handler: _CommServer_LLen_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LPop",
|
|
|
|
Handler: _CommServer_LPop_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LPush",
|
|
|
|
Handler: _CommServer_LPush_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LPushX",
|
|
|
|
Handler: _CommServer_LPushX_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LRange",
|
|
|
|
Handler: _CommServer_LRange_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LRem",
|
|
|
|
Handler: _CommServer_LRem_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LSet",
|
|
|
|
Handler: _CommServer_LSet_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "RPop",
|
|
|
|
Handler: _CommServer_RPop_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "LTrim",
|
|
|
|
Handler: _CommServer_LTrim_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "RPush",
|
|
|
|
Handler: _CommServer_RPush_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
|
|
|
{
|
2021-10-24 00:33:23 +08:00
|
|
|
MethodName: "RPushX",
|
|
|
|
Handler: _CommServer_RPushX_Handler,
|
2021-10-21 15:57:31 +08:00
|
|
|
},
|
2021-09-21 20:59:19 +08:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "storage.proto",
|
|
|
|
}
|