wheat-cache/pkg/proto/storage.pb.go

1054 lines
41 KiB
Go

// 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,
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,
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,
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,
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,
0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x4c,
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,
0x09, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var file_storage_proto_goTypes = []interface{}{
(*SetRequest)(nil), // 0: SetRequest
(*GetRequest)(nil), // 1: GetRequest
(*AddRequest)(nil), // 2: AddRequest
(*ReduceRequest)(nil), // 3: ReduceRequest
(*SetBitRequest)(nil), // 4: SetBitRequest
(*GetBitRequest)(nil), // 5: GetBitRequest
(*GetRangeRequest)(nil), // 6: GetRangeRequest
(*GetSetRequest)(nil), // 7: GetSetRequest
(*StrLenRequest)(nil), // 8: StrLenRequest
(*SetnxRequest)(nil), // 9: SetnxRequest
(*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
(*SetResponse)(nil), // 22: SetResponse
(*GetResponse)(nil), // 23: GetResponse
(*AddResponse)(nil), // 24: AddResponse
(*ReduceResponse)(nil), // 25: ReduceResponse
(*SetBitResponse)(nil), // 26: SetBitResponse
(*GetBitResponse)(nil), // 27: GetBitResponse
(*GetRangeResponse)(nil), // 28: GetRangeResponse
(*GetSetResponse)(nil), // 29: GetSetResponse
(*StrLenResponse)(nil), // 30: StrLenResponse
(*SetnxResponse)(nil), // 31: SetnxResponse
(*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
}
var file_storage_proto_depIdxs = []int32{
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
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
9, // 9: CommServer.Setnx:input_type -> SetnxRequest
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
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
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
31, // 31: CommServer.Setnx:output_type -> SetnxResponse
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
22, // [22:44] is the sub-list for method output_type
0, // [0:22] is the sub-list for method input_type
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
}
func init() { file_storage_proto_init() }
func file_storage_proto_init() {
if File_storage_proto != nil {
return
}
file_stringx_proto_init()
file_listx_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_storage_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
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 {
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)
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)
Setnx(ctx context.Context, in *SetnxRequest, opts ...grpc.CallOption) (*SetnxResponse, error)
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)
}
type commServerClient struct {
cc grpc.ClientConnInterface
}
func NewCommServerClient(cc grpc.ClientConnInterface) CommServerClient {
return &commServerClient{cc}
}
func (c *commServerClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) {
out := new(SetResponse)
err := c.cc.Invoke(ctx, "/CommServer/Set", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *commServerClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
out := new(GetResponse)
err := c.cc.Invoke(ctx, "/CommServer/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *commServerClient) Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) {
out := new(AddResponse)
err := c.cc.Invoke(ctx, "/CommServer/Add", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *commServerClient) Reduce(ctx context.Context, in *ReduceRequest, opts ...grpc.CallOption) (*ReduceResponse, error) {
out := new(ReduceResponse)
err := c.cc.Invoke(ctx, "/CommServer/Reduce", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
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
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
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...)
if err != nil {
return nil, err
}
return out, nil
}
// CommServerServer is the server API for CommServer service.
type CommServerServer interface {
Set(context.Context, *SetRequest) (*SetResponse, error)
Get(context.Context, *GetRequest) (*GetResponse, error)
Add(context.Context, *AddRequest) (*AddResponse, error)
Reduce(context.Context, *ReduceRequest) (*ReduceResponse, error)
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)
Setnx(context.Context, *SetnxRequest) (*SetnxResponse, error)
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)
}
// UnimplementedCommServerServer can be embedded to have forward compatible implementations.
type UnimplementedCommServerServer struct {
}
func (*UnimplementedCommServerServer) Set(context.Context, *SetRequest) (*SetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Set not implemented")
}
func (*UnimplementedCommServerServer) Get(context.Context, *GetRequest) (*GetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedCommServerServer) Add(context.Context, *AddRequest) (*AddResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Add not implemented")
}
func (*UnimplementedCommServerServer) Reduce(context.Context, *ReduceRequest) (*ReduceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Reduce not implemented")
}
func (*UnimplementedCommServerServer) SetBit(context.Context, *SetBitRequest) (*SetBitResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetBit not implemented")
}
func (*UnimplementedCommServerServer) GetBit(context.Context, *GetBitRequest) (*GetBitResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBit not implemented")
}
func (*UnimplementedCommServerServer) GetRange(context.Context, *GetRangeRequest) (*GetRangeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRange not implemented")
}
func (*UnimplementedCommServerServer) GetSet(context.Context, *GetSetRequest) (*GetSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetSet not implemented")
}
func (*UnimplementedCommServerServer) StrLen(context.Context, *StrLenRequest) (*StrLenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StrLen not implemented")
}
func (*UnimplementedCommServerServer) Setnx(context.Context, *SetnxRequest) (*SetnxResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Setnx not implemented")
}
func (*UnimplementedCommServerServer) LIndex(context.Context, *LIndexRequest) (*LIndexResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LIndex not implemented")
}
func (*UnimplementedCommServerServer) LLen(context.Context, *LLenRequest) (*LLenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LLen not implemented")
}
func (*UnimplementedCommServerServer) LPop(context.Context, *LPopRequest) (*LPopResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LPop not implemented")
}
func (*UnimplementedCommServerServer) LPush(context.Context, *LPushRequest) (*LPushResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LPush not implemented")
}
func (*UnimplementedCommServerServer) LPushX(context.Context, *LPushXRequest) (*LPushXResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LPushX not implemented")
}
func (*UnimplementedCommServerServer) LRange(context.Context, *LRangeRequest) (*LRangeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LRange not implemented")
}
func (*UnimplementedCommServerServer) LRem(context.Context, *LRemRequest) (*LRemResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LRem not implemented")
}
func (*UnimplementedCommServerServer) LSet(context.Context, *LSetRequest) (*LSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LSet not implemented")
}
func (*UnimplementedCommServerServer) RPop(context.Context, *RPopRequest) (*RPopResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RPop not implemented")
}
func (*UnimplementedCommServerServer) LTrim(context.Context, *LTrimRequest) (*LTrimResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LTrim not implemented")
}
func (*UnimplementedCommServerServer) RPush(context.Context, *RPushRequest) (*RPushResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RPush not implemented")
}
func (*UnimplementedCommServerServer) RPushX(context.Context, *RPushXRequest) (*RPushXResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RPushX not implemented")
}
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)
}
func _CommServer_SetBit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetBitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).SetBit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/SetBit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).SetBit(ctx, req.(*SetBitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_GetBit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetBitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).GetBit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/GetBit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).GetBit(ctx, req.(*GetBitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_GetRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRangeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).GetRange(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/GetRange",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).GetRange(ctx, req.(*GetRangeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_GetSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetSetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).GetSet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/GetSet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).GetSet(ctx, req.(*GetSetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_StrLen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StrLenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).StrLen(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/StrLen",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).StrLen(ctx, req.(*StrLenRequest))
}
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)
}
func _CommServer_LIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LIndexRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LIndex(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LIndex",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LIndex(ctx, req.(*LIndexRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_LLen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LLenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LLen(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LLen",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LLen(ctx, req.(*LLenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_LPop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LPopRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LPop(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LPop",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LPop(ctx, req.(*LPopRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_LPush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LPushRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LPush(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LPush",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LPush(ctx, req.(*LPushRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_LPushX_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LPushXRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LPushX(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LPushX",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LPushX(ctx, req.(*LPushXRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_LRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LRangeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LRange(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LRange",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LRange(ctx, req.(*LRangeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_LRem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LRemRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LRem(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LRem",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LRem(ctx, req.(*LRemRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_LSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LSetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LSet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LSet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LSet(ctx, req.(*LSetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_RPop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RPopRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).RPop(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/RPop",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).RPop(ctx, req.(*RPopRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_LTrim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LTrimRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).LTrim(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/LTrim",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).LTrim(ctx, req.(*LTrimRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_RPush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RPushRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).RPush(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/RPush",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).RPush(ctx, req.(*RPushRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CommServer_RPushX_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RPushXRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CommServerServer).RPushX(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CommServer/RPushX",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CommServerServer).RPushX(ctx, req.(*RPushXRequest))
}
return interceptor(ctx, in, info, handler)
}
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,
},
{
MethodName: "SetBit",
Handler: _CommServer_SetBit_Handler,
},
{
MethodName: "GetBit",
Handler: _CommServer_GetBit_Handler,
},
{
MethodName: "GetRange",
Handler: _CommServer_GetRange_Handler,
},
{
MethodName: "GetSet",
Handler: _CommServer_GetSet_Handler,
},
{
MethodName: "StrLen",
Handler: _CommServer_StrLen_Handler,
},
{
MethodName: "Setnx",
Handler: _CommServer_Setnx_Handler,
},
{
MethodName: "LIndex",
Handler: _CommServer_LIndex_Handler,
},
{
MethodName: "LLen",
Handler: _CommServer_LLen_Handler,
},
{
MethodName: "LPop",
Handler: _CommServer_LPop_Handler,
},
{
MethodName: "LPush",
Handler: _CommServer_LPush_Handler,
},
{
MethodName: "LPushX",
Handler: _CommServer_LPushX_Handler,
},
{
MethodName: "LRange",
Handler: _CommServer_LRange_Handler,
},
{
MethodName: "LRem",
Handler: _CommServer_LRem_Handler,
},
{
MethodName: "LSet",
Handler: _CommServer_LSet_Handler,
},
{
MethodName: "RPop",
Handler: _CommServer_RPop_Handler,
},
{
MethodName: "LTrim",
Handler: _CommServer_LTrim_Handler,
},
{
MethodName: "RPush",
Handler: _CommServer_RPush_Handler,
},
{
MethodName: "RPushX",
Handler: _CommServer_RPushX_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "storage.proto",
}