You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1012 lines
34 KiB
1012 lines
34 KiB
4 years ago
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
2 years ago
|
// source: msg/msg.proto
|
||
4 years ago
|
|
||
2 years ago
|
package msg // import "./msg"
|
||
3 years ago
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
3 years ago
|
import sdk_ws "Open_IM/pkg/proto/sdk_ws"
|
||
4 years ago
|
|
||
3 years ago
|
import (
|
||
|
context "golang.org/x/net/context"
|
||
|
grpc "google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
4 years ago
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
3 years ago
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
4 years ago
|
|
||
3 years ago
|
type MsgDataToMQ struct {
|
||
|
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
|
||
|
OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"`
|
||
|
MsgData *sdk_ws.MsgData `protobuf:"bytes,3,opt,name=msgData" json:"msgData,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
func (m *MsgDataToMQ) Reset() { *m = MsgDataToMQ{} }
|
||
|
func (m *MsgDataToMQ) String() string { return proto.CompactTextString(m) }
|
||
|
func (*MsgDataToMQ) ProtoMessage() {}
|
||
|
func (*MsgDataToMQ) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{0}
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *MsgDataToMQ) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_MsgDataToMQ.Unmarshal(m, b)
|
||
3 years ago
|
}
|
||
3 years ago
|
func (m *MsgDataToMQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_MsgDataToMQ.Marshal(b, m, deterministic)
|
||
3 years ago
|
}
|
||
3 years ago
|
func (dst *MsgDataToMQ) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_MsgDataToMQ.Merge(dst, src)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *MsgDataToMQ) XXX_Size() int {
|
||
|
return xxx_messageInfo_MsgDataToMQ.Size(m)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *MsgDataToMQ) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_MsgDataToMQ.DiscardUnknown(m)
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
var xxx_messageInfo_MsgDataToMQ proto.InternalMessageInfo
|
||
4 years ago
|
|
||
3 years ago
|
func (m *MsgDataToMQ) GetToken() string {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.Token
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *MsgDataToMQ) GetOperationID() string {
|
||
4 years ago
|
if m != nil {
|
||
3 years ago
|
return m.OperationID
|
||
4 years ago
|
}
|
||
3 years ago
|
return ""
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
func (m *MsgDataToMQ) GetMsgData() *sdk_ws.MsgData {
|
||
4 years ago
|
if m != nil {
|
||
3 years ago
|
return m.MsgData
|
||
4 years ago
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
3 years ago
|
type MsgDataToDB struct {
|
||
|
MsgData *sdk_ws.MsgData `protobuf:"bytes,1,opt,name=msgData" json:"msgData,omitempty"`
|
||
3 years ago
|
OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"`
|
||
3 years ago
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
func (m *MsgDataToDB) Reset() { *m = MsgDataToDB{} }
|
||
|
func (m *MsgDataToDB) String() string { return proto.CompactTextString(m) }
|
||
|
func (*MsgDataToDB) ProtoMessage() {}
|
||
|
func (*MsgDataToDB) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{1}
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *MsgDataToDB) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_MsgDataToDB.Unmarshal(m, b)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *MsgDataToDB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_MsgDataToDB.Marshal(b, m, deterministic)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (dst *MsgDataToDB) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_MsgDataToDB.Merge(dst, src)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *MsgDataToDB) XXX_Size() int {
|
||
|
return xxx_messageInfo_MsgDataToDB.Size(m)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *MsgDataToDB) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_MsgDataToDB.DiscardUnknown(m)
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
var xxx_messageInfo_MsgDataToDB proto.InternalMessageInfo
|
||
4 years ago
|
|
||
3 years ago
|
func (m *MsgDataToDB) GetMsgData() *sdk_ws.MsgData {
|
||
4 years ago
|
if m != nil {
|
||
3 years ago
|
return m.MsgData
|
||
4 years ago
|
}
|
||
3 years ago
|
return nil
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
func (m *MsgDataToDB) GetOperationID() string {
|
||
|
if m != nil {
|
||
|
return m.OperationID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
type PushMsgDataToMQ struct {
|
||
|
OperationID string `protobuf:"bytes,1,opt,name=OperationID" json:"OperationID,omitempty"`
|
||
|
MsgData *sdk_ws.MsgData `protobuf:"bytes,2,opt,name=msgData" json:"msgData,omitempty"`
|
||
3 years ago
|
PushToUserID string `protobuf:"bytes,3,opt,name=pushToUserID" json:"pushToUserID,omitempty"`
|
||
3 years ago
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
func (m *PushMsgDataToMQ) Reset() { *m = PushMsgDataToMQ{} }
|
||
|
func (m *PushMsgDataToMQ) String() string { return proto.CompactTextString(m) }
|
||
|
func (*PushMsgDataToMQ) ProtoMessage() {}
|
||
|
func (*PushMsgDataToMQ) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{2}
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *PushMsgDataToMQ) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_PushMsgDataToMQ.Unmarshal(m, b)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *PushMsgDataToMQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_PushMsgDataToMQ.Marshal(b, m, deterministic)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (dst *PushMsgDataToMQ) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_PushMsgDataToMQ.Merge(dst, src)
|
||
3 years ago
|
}
|
||
3 years ago
|
func (m *PushMsgDataToMQ) XXX_Size() int {
|
||
|
return xxx_messageInfo_PushMsgDataToMQ.Size(m)
|
||
3 years ago
|
}
|
||
3 years ago
|
func (m *PushMsgDataToMQ) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_PushMsgDataToMQ.DiscardUnknown(m)
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
var xxx_messageInfo_PushMsgDataToMQ proto.InternalMessageInfo
|
||
4 years ago
|
|
||
3 years ago
|
func (m *PushMsgDataToMQ) GetOperationID() string {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.OperationID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *PushMsgDataToMQ) GetMsgData() *sdk_ws.MsgData {
|
||
4 years ago
|
if m != nil {
|
||
3 years ago
|
return m.MsgData
|
||
4 years ago
|
}
|
||
3 years ago
|
return nil
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
func (m *PushMsgDataToMQ) GetPushToUserID() string {
|
||
|
if m != nil {
|
||
|
return m.PushToUserID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
2 years ago
|
type MsgDataToMongoByMQ struct {
|
||
|
LastSeq uint64 `protobuf:"varint,1,opt,name=lastSeq" json:"lastSeq,omitempty"`
|
||
|
AggregationID string `protobuf:"bytes,2,opt,name=aggregationID" json:"aggregationID,omitempty"`
|
||
|
MessageList []*MsgDataToMQ `protobuf:"bytes,3,rep,name=messageList" json:"messageList,omitempty"`
|
||
|
TriggerID string `protobuf:"bytes,4,opt,name=triggerID" json:"triggerID,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *MsgDataToMongoByMQ) Reset() { *m = MsgDataToMongoByMQ{} }
|
||
|
func (m *MsgDataToMongoByMQ) String() string { return proto.CompactTextString(m) }
|
||
|
func (*MsgDataToMongoByMQ) ProtoMessage() {}
|
||
|
func (*MsgDataToMongoByMQ) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{3}
|
||
2 years ago
|
}
|
||
|
func (m *MsgDataToMongoByMQ) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_MsgDataToMongoByMQ.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *MsgDataToMongoByMQ) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_MsgDataToMongoByMQ.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *MsgDataToMongoByMQ) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_MsgDataToMongoByMQ.Merge(dst, src)
|
||
|
}
|
||
|
func (m *MsgDataToMongoByMQ) XXX_Size() int {
|
||
|
return xxx_messageInfo_MsgDataToMongoByMQ.Size(m)
|
||
|
}
|
||
|
func (m *MsgDataToMongoByMQ) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_MsgDataToMongoByMQ.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_MsgDataToMongoByMQ proto.InternalMessageInfo
|
||
|
|
||
|
func (m *MsgDataToMongoByMQ) GetLastSeq() uint64 {
|
||
|
if m != nil {
|
||
|
return m.LastSeq
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *MsgDataToMongoByMQ) GetAggregationID() string {
|
||
|
if m != nil {
|
||
|
return m.AggregationID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *MsgDataToMongoByMQ) GetMessageList() []*MsgDataToMQ {
|
||
|
if m != nil {
|
||
|
return m.MessageList
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *MsgDataToMongoByMQ) GetTriggerID() string {
|
||
|
if m != nil {
|
||
|
return m.TriggerID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
// message PullMessageReq {
|
||
|
// string UserID = 1;
|
||
|
// int64 SeqBegin = 2;
|
||
|
// int64 SeqEnd = 3;
|
||
|
// string OperationID = 4;
|
||
|
// }
|
||
|
//
|
||
|
// message PullMessageResp {
|
||
|
// int32 ErrCode = 1;
|
||
|
// string ErrMsg = 2;
|
||
|
// int64 MaxSeq = 3;
|
||
|
// int64 MinSeq = 4;
|
||
|
// repeated GatherFormat SingleUserMsg = 5;
|
||
|
// repeated GatherFormat GroupUserMsg = 6;
|
||
|
// }
|
||
|
// message PullMessageBySeqListReq{
|
||
|
// string UserID = 1;
|
||
|
// string OperationID = 2;
|
||
|
// repeated int64 seqList =3;
|
||
|
// }
|
||
3 years ago
|
type GetMaxAndMinSeqReq struct {
|
||
|
UserID string `protobuf:"bytes,1,opt,name=UserID" json:"UserID,omitempty"`
|
||
|
OperationID string `protobuf:"bytes,2,opt,name=OperationID" json:"OperationID,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *GetMaxAndMinSeqReq) Reset() { *m = GetMaxAndMinSeqReq{} }
|
||
|
func (m *GetMaxAndMinSeqReq) String() string { return proto.CompactTextString(m) }
|
||
|
func (*GetMaxAndMinSeqReq) ProtoMessage() {}
|
||
|
func (*GetMaxAndMinSeqReq) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{4}
|
||
3 years ago
|
}
|
||
|
func (m *GetMaxAndMinSeqReq) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_GetMaxAndMinSeqReq.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *GetMaxAndMinSeqReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_GetMaxAndMinSeqReq.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *GetMaxAndMinSeqReq) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_GetMaxAndMinSeqReq.Merge(dst, src)
|
||
|
}
|
||
|
func (m *GetMaxAndMinSeqReq) XXX_Size() int {
|
||
|
return xxx_messageInfo_GetMaxAndMinSeqReq.Size(m)
|
||
|
}
|
||
|
func (m *GetMaxAndMinSeqReq) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_GetMaxAndMinSeqReq.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_GetMaxAndMinSeqReq proto.InternalMessageInfo
|
||
|
|
||
|
func (m *GetMaxAndMinSeqReq) GetUserID() string {
|
||
|
if m != nil {
|
||
|
return m.UserID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *GetMaxAndMinSeqReq) GetOperationID() string {
|
||
|
if m != nil {
|
||
|
return m.OperationID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type GetMaxAndMinSeqResp struct {
|
||
3 years ago
|
ErrCode int32 `protobuf:"varint,1,opt,name=ErrCode" json:"ErrCode,omitempty"`
|
||
|
ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg" json:"ErrMsg,omitempty"`
|
||
3 years ago
|
MaxSeq uint32 `protobuf:"varint,3,opt,name=MaxSeq" json:"MaxSeq,omitempty"`
|
||
|
MinSeq uint32 `protobuf:"varint,4,opt,name=MinSeq" json:"MinSeq,omitempty"`
|
||
4 years ago
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) Reset() { *m = GetMaxAndMinSeqResp{} }
|
||
|
func (m *GetMaxAndMinSeqResp) String() string { return proto.CompactTextString(m) }
|
||
|
func (*GetMaxAndMinSeqResp) ProtoMessage() {}
|
||
|
func (*GetMaxAndMinSeqResp) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{5}
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_GetMaxAndMinSeqResp.Unmarshal(m, b)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_GetMaxAndMinSeqResp.Marshal(b, m, deterministic)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (dst *GetMaxAndMinSeqResp) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_GetMaxAndMinSeqResp.Merge(dst, src)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) XXX_Size() int {
|
||
|
return xxx_messageInfo_GetMaxAndMinSeqResp.Size(m)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_GetMaxAndMinSeqResp.DiscardUnknown(m)
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
var xxx_messageInfo_GetMaxAndMinSeqResp proto.InternalMessageInfo
|
||
4 years ago
|
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) GetErrCode() int32 {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.ErrCode
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) GetErrMsg() string {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.ErrMsg
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) GetMaxSeq() uint32 {
|
||
4 years ago
|
if m != nil {
|
||
3 years ago
|
return m.MaxSeq
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *GetMaxAndMinSeqResp) GetMinSeq() uint32 {
|
||
3 years ago
|
if m != nil {
|
||
|
return m.MinSeq
|
||
4 years ago
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
3 years ago
|
type SendMsgReq struct {
|
||
|
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
|
||
|
OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"`
|
||
|
MsgData *sdk_ws.MsgData `protobuf:"bytes,3,opt,name=msgData" json:"msgData,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
func (m *SendMsgReq) Reset() { *m = SendMsgReq{} }
|
||
|
func (m *SendMsgReq) String() string { return proto.CompactTextString(m) }
|
||
|
func (*SendMsgReq) ProtoMessage() {}
|
||
|
func (*SendMsgReq) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{6}
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *SendMsgReq) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_SendMsgReq.Unmarshal(m, b)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *SendMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_SendMsgReq.Marshal(b, m, deterministic)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (dst *SendMsgReq) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_SendMsgReq.Merge(dst, src)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *SendMsgReq) XXX_Size() int {
|
||
|
return xxx_messageInfo_SendMsgReq.Size(m)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *SendMsgReq) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_SendMsgReq.DiscardUnknown(m)
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
var xxx_messageInfo_SendMsgReq proto.InternalMessageInfo
|
||
4 years ago
|
|
||
3 years ago
|
func (m *SendMsgReq) GetToken() string {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.Token
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *SendMsgReq) GetOperationID() string {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.OperationID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *SendMsgReq) GetMsgData() *sdk_ws.MsgData {
|
||
3 years ago
|
if m != nil {
|
||
3 years ago
|
return m.MsgData
|
||
4 years ago
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
3 years ago
|
type SendMsgResp struct {
|
||
3 years ago
|
ErrCode int32 `protobuf:"varint,1,opt,name=errCode" json:"errCode,omitempty"`
|
||
|
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg" json:"errMsg,omitempty"`
|
||
|
ServerMsgID string `protobuf:"bytes,4,opt,name=serverMsgID" json:"serverMsgID,omitempty"`
|
||
|
ClientMsgID string `protobuf:"bytes,5,opt,name=clientMsgID" json:"clientMsgID,omitempty"`
|
||
3 years ago
|
SendTime int64 `protobuf:"varint,6,opt,name=sendTime" json:"sendTime,omitempty"`
|
||
4 years ago
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *SendMsgResp) Reset() { *m = SendMsgResp{} }
|
||
|
func (m *SendMsgResp) String() string { return proto.CompactTextString(m) }
|
||
|
func (*SendMsgResp) ProtoMessage() {}
|
||
|
func (*SendMsgResp) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{7}
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *SendMsgResp) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_SendMsgResp.Unmarshal(m, b)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *SendMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_SendMsgResp.Marshal(b, m, deterministic)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (dst *SendMsgResp) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_SendMsgResp.Merge(dst, src)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *SendMsgResp) XXX_Size() int {
|
||
|
return xxx_messageInfo_SendMsgResp.Size(m)
|
||
4 years ago
|
}
|
||
3 years ago
|
func (m *SendMsgResp) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_SendMsgResp.DiscardUnknown(m)
|
||
4 years ago
|
}
|
||
|
|
||
3 years ago
|
var xxx_messageInfo_SendMsgResp proto.InternalMessageInfo
|
||
4 years ago
|
|
||
3 years ago
|
func (m *SendMsgResp) GetErrCode() int32 {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.ErrCode
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *SendMsgResp) GetErrMsg() string {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.ErrMsg
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *SendMsgResp) GetServerMsgID() string {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.ServerMsgID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *SendMsgResp) GetClientMsgID() string {
|
||
4 years ago
|
if m != nil {
|
||
|
return m.ClientMsgID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
3 years ago
|
func (m *SendMsgResp) GetSendTime() int64 {
|
||
3 years ago
|
if m != nil {
|
||
|
return m.SendTime
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
3 years ago
|
type ClearMsgReq struct {
|
||
|
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
|
||
|
OpUserID string `protobuf:"bytes,2,opt,name=opUserID" json:"opUserID,omitempty"`
|
||
|
OperationID string `protobuf:"bytes,3,opt,name=operationID" json:"operationID,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ClearMsgReq) Reset() { *m = ClearMsgReq{} }
|
||
|
func (m *ClearMsgReq) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ClearMsgReq) ProtoMessage() {}
|
||
|
func (*ClearMsgReq) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{8}
|
||
3 years ago
|
}
|
||
|
func (m *ClearMsgReq) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_ClearMsgReq.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *ClearMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_ClearMsgReq.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *ClearMsgReq) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_ClearMsgReq.Merge(dst, src)
|
||
|
}
|
||
|
func (m *ClearMsgReq) XXX_Size() int {
|
||
|
return xxx_messageInfo_ClearMsgReq.Size(m)
|
||
|
}
|
||
|
func (m *ClearMsgReq) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_ClearMsgReq.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_ClearMsgReq proto.InternalMessageInfo
|
||
|
|
||
|
func (m *ClearMsgReq) GetUserID() string {
|
||
|
if m != nil {
|
||
|
return m.UserID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ClearMsgReq) GetOpUserID() string {
|
||
|
if m != nil {
|
||
|
return m.OpUserID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *ClearMsgReq) GetOperationID() string {
|
||
|
if m != nil {
|
||
|
return m.OperationID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type ClearMsgResp struct {
|
||
|
ErrCode int32 `protobuf:"varint,1,opt,name=errCode" json:"errCode,omitempty"`
|
||
|
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg" json:"errMsg,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ClearMsgResp) Reset() { *m = ClearMsgResp{} }
|
||
|
func (m *ClearMsgResp) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ClearMsgResp) ProtoMessage() {}
|
||
|
func (*ClearMsgResp) Descriptor() ([]byte, []int) {
|
||
2 years ago
|
return fileDescriptor_msg_f78465087fd6709c, []int{9}
|
||
3 years ago
|
}
|
||
|
func (m *ClearMsgResp) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_ClearMsgResp.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *ClearMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_ClearMsgResp.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *ClearMsgResp) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_ClearMsgResp.Merge(dst, src)
|
||
|
}
|
||
|
func (m *ClearMsgResp) XXX_Size() int {
|
||
|
return xxx_messageInfo_ClearMsgResp.Size(m)
|
||
|
}
|
||
|
func (m *ClearMsgResp) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_ClearMsgResp.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_ClearMsgResp proto.InternalMessageInfo
|
||
|
|
||
|
func (m *ClearMsgResp) GetErrCode() int32 {
|
||
|
if m != nil {
|
||
|
return m.ErrCode
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ClearMsgResp) GetErrMsg() string {
|
||
|
if m != nil {
|
||
|
return m.ErrMsg
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
2 years ago
|
type SetMsgMinSeqReq struct {
|
||
|
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
|
||
|
GroupID string `protobuf:"bytes,2,opt,name=groupID" json:"groupID,omitempty"`
|
||
|
MinSeq uint32 `protobuf:"varint,3,opt,name=minSeq" json:"minSeq,omitempty"`
|
||
|
OperationID string `protobuf:"bytes,4,opt,name=operationID" json:"operationID,omitempty"`
|
||
|
OpUserID string `protobuf:"bytes,5,opt,name=opUserID" json:"opUserID,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *SetMsgMinSeqReq) Reset() { *m = SetMsgMinSeqReq{} }
|
||
|
func (m *SetMsgMinSeqReq) String() string { return proto.CompactTextString(m) }
|
||
|
func (*SetMsgMinSeqReq) ProtoMessage() {}
|
||
|
func (*SetMsgMinSeqReq) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_msg_f78465087fd6709c, []int{10}
|
||
|
}
|
||
|
func (m *SetMsgMinSeqReq) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_SetMsgMinSeqReq.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *SetMsgMinSeqReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_SetMsgMinSeqReq.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *SetMsgMinSeqReq) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_SetMsgMinSeqReq.Merge(dst, src)
|
||
|
}
|
||
|
func (m *SetMsgMinSeqReq) XXX_Size() int {
|
||
|
return xxx_messageInfo_SetMsgMinSeqReq.Size(m)
|
||
|
}
|
||
|
func (m *SetMsgMinSeqReq) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_SetMsgMinSeqReq.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_SetMsgMinSeqReq proto.InternalMessageInfo
|
||
|
|
||
|
func (m *SetMsgMinSeqReq) GetUserID() string {
|
||
|
if m != nil {
|
||
|
return m.UserID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *SetMsgMinSeqReq) GetGroupID() string {
|
||
|
if m != nil {
|
||
|
return m.GroupID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *SetMsgMinSeqReq) GetMinSeq() uint32 {
|
||
|
if m != nil {
|
||
|
return m.MinSeq
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *SetMsgMinSeqReq) GetOperationID() string {
|
||
|
if m != nil {
|
||
|
return m.OperationID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *SetMsgMinSeqReq) GetOpUserID() string {
|
||
|
if m != nil {
|
||
|
return m.OpUserID
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type SetMsgMinSeqResp struct {
|
||
|
ErrCode int32 `protobuf:"varint,1,opt,name=errCode" json:"errCode,omitempty"`
|
||
|
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg" json:"errMsg,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *SetMsgMinSeqResp) Reset() { *m = SetMsgMinSeqResp{} }
|
||
|
func (m *SetMsgMinSeqResp) String() string { return proto.CompactTextString(m) }
|
||
|
func (*SetMsgMinSeqResp) ProtoMessage() {}
|
||
|
func (*SetMsgMinSeqResp) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_msg_f78465087fd6709c, []int{11}
|
||
|
}
|
||
|
func (m *SetMsgMinSeqResp) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_SetMsgMinSeqResp.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *SetMsgMinSeqResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_SetMsgMinSeqResp.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *SetMsgMinSeqResp) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_SetMsgMinSeqResp.Merge(dst, src)
|
||
|
}
|
||
|
func (m *SetMsgMinSeqResp) XXX_Size() int {
|
||
|
return xxx_messageInfo_SetMsgMinSeqResp.Size(m)
|
||
|
}
|
||
|
func (m *SetMsgMinSeqResp) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_SetMsgMinSeqResp.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_SetMsgMinSeqResp proto.InternalMessageInfo
|
||
|
|
||
|
func (m *SetMsgMinSeqResp) GetErrCode() int32 {
|
||
|
if m != nil {
|
||
|
return m.ErrCode
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *SetMsgMinSeqResp) GetErrMsg() string {
|
||
|
if m != nil {
|
||
|
return m.ErrMsg
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
4 years ago
|
func init() {
|
||
2 years ago
|
proto.RegisterType((*MsgDataToMQ)(nil), "msg.MsgDataToMQ")
|
||
|
proto.RegisterType((*MsgDataToDB)(nil), "msg.MsgDataToDB")
|
||
|
proto.RegisterType((*PushMsgDataToMQ)(nil), "msg.PushMsgDataToMQ")
|
||
|
proto.RegisterType((*MsgDataToMongoByMQ)(nil), "msg.MsgDataToMongoByMQ")
|
||
|
proto.RegisterType((*GetMaxAndMinSeqReq)(nil), "msg.GetMaxAndMinSeqReq")
|
||
|
proto.RegisterType((*GetMaxAndMinSeqResp)(nil), "msg.GetMaxAndMinSeqResp")
|
||
|
proto.RegisterType((*SendMsgReq)(nil), "msg.SendMsgReq")
|
||
|
proto.RegisterType((*SendMsgResp)(nil), "msg.SendMsgResp")
|
||
|
proto.RegisterType((*ClearMsgReq)(nil), "msg.ClearMsgReq")
|
||
|
proto.RegisterType((*ClearMsgResp)(nil), "msg.ClearMsgResp")
|
||
|
proto.RegisterType((*SetMsgMinSeqReq)(nil), "msg.SetMsgMinSeqReq")
|
||
|
proto.RegisterType((*SetMsgMinSeqResp)(nil), "msg.SetMsgMinSeqResp")
|
||
3 years ago
|
}
|
||
|
|
||
3 years ago
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ context.Context
|
||
|
var _ grpc.ClientConn
|
||
|
|
||
|
// 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.SupportPackageIsVersion4
|
||
|
|
||
2 years ago
|
// Client API for Msg service
|
||
3 years ago
|
|
||
2 years ago
|
type MsgClient interface {
|
||
3 years ago
|
GetMaxAndMinSeq(ctx context.Context, in *sdk_ws.GetMaxAndMinSeqReq, opts ...grpc.CallOption) (*sdk_ws.GetMaxAndMinSeqResp, error)
|
||
3 years ago
|
PullMessageBySeqList(ctx context.Context, in *sdk_ws.PullMessageBySeqListReq, opts ...grpc.CallOption) (*sdk_ws.PullMessageBySeqListResp, error)
|
||
3 years ago
|
SendMsg(ctx context.Context, in *SendMsgReq, opts ...grpc.CallOption) (*SendMsgResp, error)
|
||
3 years ago
|
DelMsgList(ctx context.Context, in *sdk_ws.DelMsgListReq, opts ...grpc.CallOption) (*sdk_ws.DelMsgListResp, error)
|
||
3 years ago
|
ClearMsg(ctx context.Context, in *ClearMsgReq, opts ...grpc.CallOption) (*ClearMsgResp, error)
|
||
2 years ago
|
SetMsgMinSeq(ctx context.Context, in *SetMsgMinSeqReq, opts ...grpc.CallOption) (*SetMsgMinSeqResp, error)
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
type msgClient struct {
|
||
3 years ago
|
cc *grpc.ClientConn
|
||
|
}
|
||
|
|
||
2 years ago
|
func NewMsgClient(cc *grpc.ClientConn) MsgClient {
|
||
|
return &msgClient{cc}
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
func (c *msgClient) GetMaxAndMinSeq(ctx context.Context, in *sdk_ws.GetMaxAndMinSeqReq, opts ...grpc.CallOption) (*sdk_ws.GetMaxAndMinSeqResp, error) {
|
||
3 years ago
|
out := new(sdk_ws.GetMaxAndMinSeqResp)
|
||
2 years ago
|
err := grpc.Invoke(ctx, "/msg.msg/GetMaxAndMinSeq", in, out, c.cc, opts...)
|
||
3 years ago
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
2 years ago
|
func (c *msgClient) PullMessageBySeqList(ctx context.Context, in *sdk_ws.PullMessageBySeqListReq, opts ...grpc.CallOption) (*sdk_ws.PullMessageBySeqListResp, error) {
|
||
3 years ago
|
out := new(sdk_ws.PullMessageBySeqListResp)
|
||
2 years ago
|
err := grpc.Invoke(ctx, "/msg.msg/PullMessageBySeqList", in, out, c.cc, opts...)
|
||
3 years ago
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
2 years ago
|
func (c *msgClient) SendMsg(ctx context.Context, in *SendMsgReq, opts ...grpc.CallOption) (*SendMsgResp, error) {
|
||
3 years ago
|
out := new(SendMsgResp)
|
||
2 years ago
|
err := grpc.Invoke(ctx, "/msg.msg/SendMsg", in, out, c.cc, opts...)
|
||
3 years ago
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
2 years ago
|
func (c *msgClient) DelMsgList(ctx context.Context, in *sdk_ws.DelMsgListReq, opts ...grpc.CallOption) (*sdk_ws.DelMsgListResp, error) {
|
||
3 years ago
|
out := new(sdk_ws.DelMsgListResp)
|
||
2 years ago
|
err := grpc.Invoke(ctx, "/msg.msg/DelMsgList", in, out, c.cc, opts...)
|
||
3 years ago
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
2 years ago
|
func (c *msgClient) ClearMsg(ctx context.Context, in *ClearMsgReq, opts ...grpc.CallOption) (*ClearMsgResp, error) {
|
||
3 years ago
|
out := new(ClearMsgResp)
|
||
2 years ago
|
err := grpc.Invoke(ctx, "/msg.msg/ClearMsg", in, out, c.cc, opts...)
|
||
3 years ago
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
2 years ago
|
func (c *msgClient) SetMsgMinSeq(ctx context.Context, in *SetMsgMinSeqReq, opts ...grpc.CallOption) (*SetMsgMinSeqResp, error) {
|
||
|
out := new(SetMsgMinSeqResp)
|
||
|
err := grpc.Invoke(ctx, "/msg.msg/SetMsgMinSeq", in, out, c.cc, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
3 years ago
|
|
||
2 years ago
|
// Server API for Msg service
|
||
|
|
||
|
type MsgServer interface {
|
||
3 years ago
|
GetMaxAndMinSeq(context.Context, *sdk_ws.GetMaxAndMinSeqReq) (*sdk_ws.GetMaxAndMinSeqResp, error)
|
||
3 years ago
|
PullMessageBySeqList(context.Context, *sdk_ws.PullMessageBySeqListReq) (*sdk_ws.PullMessageBySeqListResp, error)
|
||
3 years ago
|
SendMsg(context.Context, *SendMsgReq) (*SendMsgResp, error)
|
||
3 years ago
|
DelMsgList(context.Context, *sdk_ws.DelMsgListReq) (*sdk_ws.DelMsgListResp, error)
|
||
3 years ago
|
ClearMsg(context.Context, *ClearMsgReq) (*ClearMsgResp, error)
|
||
2 years ago
|
SetMsgMinSeq(context.Context, *SetMsgMinSeqReq) (*SetMsgMinSeqResp, error)
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
func RegisterMsgServer(s *grpc.Server, srv MsgServer) {
|
||
|
s.RegisterService(&_Msg_serviceDesc, srv)
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
func _Msg_GetMaxAndMinSeq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
3 years ago
|
in := new(sdk_ws.GetMaxAndMinSeqReq)
|
||
3 years ago
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
2 years ago
|
return srv.(MsgServer).GetMaxAndMinSeq(ctx, in)
|
||
3 years ago
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
2 years ago
|
FullMethod: "/msg.msg/GetMaxAndMinSeq",
|
||
3 years ago
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
2 years ago
|
return srv.(MsgServer).GetMaxAndMinSeq(ctx, req.(*sdk_ws.GetMaxAndMinSeqReq))
|
||
3 years ago
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
2 years ago
|
func _Msg_PullMessageBySeqList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
3 years ago
|
in := new(sdk_ws.PullMessageBySeqListReq)
|
||
3 years ago
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
2 years ago
|
return srv.(MsgServer).PullMessageBySeqList(ctx, in)
|
||
3 years ago
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
2 years ago
|
FullMethod: "/msg.msg/PullMessageBySeqList",
|
||
3 years ago
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
2 years ago
|
return srv.(MsgServer).PullMessageBySeqList(ctx, req.(*sdk_ws.PullMessageBySeqListReq))
|
||
3 years ago
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
2 years ago
|
func _Msg_SendMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
3 years ago
|
in := new(SendMsgReq)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
2 years ago
|
return srv.(MsgServer).SendMsg(ctx, in)
|
||
3 years ago
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
2 years ago
|
FullMethod: "/msg.msg/SendMsg",
|
||
3 years ago
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
2 years ago
|
return srv.(MsgServer).SendMsg(ctx, req.(*SendMsgReq))
|
||
3 years ago
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
2 years ago
|
func _Msg_DelMsgList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
3 years ago
|
in := new(sdk_ws.DelMsgListReq)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
2 years ago
|
return srv.(MsgServer).DelMsgList(ctx, in)
|
||
3 years ago
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
2 years ago
|
FullMethod: "/msg.msg/DelMsgList",
|
||
3 years ago
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
2 years ago
|
return srv.(MsgServer).DelMsgList(ctx, req.(*sdk_ws.DelMsgListReq))
|
||
3 years ago
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
2 years ago
|
func _Msg_ClearMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
3 years ago
|
in := new(ClearMsgReq)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
2 years ago
|
return srv.(MsgServer).ClearMsg(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/msg.msg/ClearMsg",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(MsgServer).ClearMsg(ctx, req.(*ClearMsgReq))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _Msg_SetMsgMinSeq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(SetMsgMinSeqReq)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(MsgServer).SetMsgMinSeq(ctx, in)
|
||
3 years ago
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
2 years ago
|
FullMethod: "/msg.msg/SetMsgMinSeq",
|
||
3 years ago
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
2 years ago
|
return srv.(MsgServer).SetMsgMinSeq(ctx, req.(*SetMsgMinSeqReq))
|
||
3 years ago
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
2 years ago
|
var _Msg_serviceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "msg.msg",
|
||
|
HandlerType: (*MsgServer)(nil),
|
||
3 years ago
|
Methods: []grpc.MethodDesc{
|
||
|
{
|
||
|
MethodName: "GetMaxAndMinSeq",
|
||
2 years ago
|
Handler: _Msg_GetMaxAndMinSeq_Handler,
|
||
3 years ago
|
},
|
||
|
{
|
||
|
MethodName: "PullMessageBySeqList",
|
||
2 years ago
|
Handler: _Msg_PullMessageBySeqList_Handler,
|
||
3 years ago
|
},
|
||
|
{
|
||
|
MethodName: "SendMsg",
|
||
2 years ago
|
Handler: _Msg_SendMsg_Handler,
|
||
3 years ago
|
},
|
||
3 years ago
|
{
|
||
|
MethodName: "DelMsgList",
|
||
2 years ago
|
Handler: _Msg_DelMsgList_Handler,
|
||
3 years ago
|
},
|
||
3 years ago
|
{
|
||
|
MethodName: "ClearMsg",
|
||
2 years ago
|
Handler: _Msg_ClearMsg_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "SetMsgMinSeq",
|
||
|
Handler: _Msg_SetMsgMinSeq_Handler,
|
||
3 years ago
|
},
|
||
3 years ago
|
},
|
||
|
Streams: []grpc.StreamDesc{},
|
||
2 years ago
|
Metadata: "msg/msg.proto",
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("msg/msg.proto", fileDescriptor_msg_f78465087fd6709c) }
|
||
|
|
||
|
var fileDescriptor_msg_f78465087fd6709c = []byte{
|
||
|
// 696 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xc1, 0x6e, 0xd3, 0x4c,
|
||
|
0x10, 0x96, 0x9b, 0x26, 0x69, 0xc6, 0xad, 0xd2, 0x7f, 0xff, 0x52, 0x45, 0x16, 0x07, 0xd7, 0x02,
|
||
|
0x14, 0x01, 0x4a, 0xa4, 0xc0, 0xad, 0x17, 0x48, 0x53, 0xa1, 0x4a, 0x98, 0xb6, 0x4e, 0xb9, 0x70,
|
||
|
0x09, 0xa6, 0x59, 0x6d, 0xad, 0xc6, 0xf6, 0x66, 0xc7, 0xa1, 0x2d, 0x3c, 0x03, 0x0f, 0xc0, 0x89,
|
||
|
0x1b, 0xaf, 0xc2, 0x6b, 0xa1, 0xdd, 0x75, 0x92, 0x75, 0x12, 0xa9, 0x51, 0x0f, 0x1c, 0xbf, 0xcf,
|
||
|
0xb3, 0x33, 0xdf, 0x37, 0x3b, 0xb3, 0x86, 0x9d, 0x18, 0x59, 0x3b, 0x46, 0xd6,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