Documentation ¶
Index ¶
- Variables
- func RegisterOnlineMessageRelayServiceServer(s grpc.ServiceRegistrar, srv OnlineMessageRelayServiceServer)
- type BodyReq
- func (*BodyReq) Descriptor() ([]byte, []int)deprecated
- func (x *BodyReq) GetData() []byte
- func (x *BodyReq) GetReqIdentifier() uint32
- func (x *BodyReq) GetSendID() string
- func (x *BodyReq) GetToken() string
- func (*BodyReq) ProtoMessage()
- func (x *BodyReq) ProtoReflect() protoreflect.Message
- func (x *BodyReq) Reset()
- func (x *BodyReq) String() string
- type BodyResp
- func (*BodyResp) Descriptor() ([]byte, []int)deprecated
- func (x *BodyResp) GetData() []byte
- func (x *BodyResp) GetErrCode() uint32
- func (x *BodyResp) GetErrMsg() string
- func (x *BodyResp) GetReqIdentifier() uint32
- func (*BodyResp) ProtoMessage()
- func (x *BodyResp) ProtoReflect() protoreflect.Message
- func (x *BodyResp) Reset()
- func (x *BodyResp) String() string
- type GetUsersOnlineStatusReq
- func (*GetUsersOnlineStatusReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersOnlineStatusReq) GetUserIDList() []string
- func (*GetUsersOnlineStatusReq) ProtoMessage()
- func (x *GetUsersOnlineStatusReq) ProtoReflect() protoreflect.Message
- func (x *GetUsersOnlineStatusReq) Reset()
- func (x *GetUsersOnlineStatusReq) String() string
- type GetUsersOnlineStatusResp
- func (*GetUsersOnlineStatusResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersOnlineStatusResp) GetErrCode() int32
- func (x *GetUsersOnlineStatusResp) GetErrMsg() string
- func (x *GetUsersOnlineStatusResp) GetFailedResult() []*GetUsersOnlineStatusResp_FailedDetail
- func (x *GetUsersOnlineStatusResp) GetSuccessResult() []*GetUsersOnlineStatusResp_SuccessResult
- func (*GetUsersOnlineStatusResp) ProtoMessage()
- func (x *GetUsersOnlineStatusResp) ProtoReflect() protoreflect.Message
- func (x *GetUsersOnlineStatusResp) Reset()
- func (x *GetUsersOnlineStatusResp) String() string
- type GetUsersOnlineStatusResp_FailedDetail
- func (*GetUsersOnlineStatusResp_FailedDetail) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersOnlineStatusResp_FailedDetail) GetErrCode() int32
- func (x *GetUsersOnlineStatusResp_FailedDetail) GetErrMsg() string
- func (x *GetUsersOnlineStatusResp_FailedDetail) GetUserID() string
- func (*GetUsersOnlineStatusResp_FailedDetail) ProtoMessage()
- func (x *GetUsersOnlineStatusResp_FailedDetail) ProtoReflect() protoreflect.Message
- func (x *GetUsersOnlineStatusResp_FailedDetail) Reset()
- func (x *GetUsersOnlineStatusResp_FailedDetail) String() string
- type GetUsersOnlineStatusResp_Status
- func (GetUsersOnlineStatusResp_Status) Descriptor() protoreflect.EnumDescriptor
- func (x GetUsersOnlineStatusResp_Status) Enum() *GetUsersOnlineStatusResp_Status
- func (GetUsersOnlineStatusResp_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetUsersOnlineStatusResp_Status) Number() protoreflect.EnumNumber
- func (x GetUsersOnlineStatusResp_Status) String() string
- func (GetUsersOnlineStatusResp_Status) Type() protoreflect.EnumType
- type GetUsersOnlineStatusResp_SuccessDetail
- func (*GetUsersOnlineStatusResp_SuccessDetail) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersOnlineStatusResp_SuccessDetail) GetPlatform() string
- func (x *GetUsersOnlineStatusResp_SuccessDetail) GetStatus() GetUsersOnlineStatusResp_Status
- func (*GetUsersOnlineStatusResp_SuccessDetail) ProtoMessage()
- func (x *GetUsersOnlineStatusResp_SuccessDetail) ProtoReflect() protoreflect.Message
- func (x *GetUsersOnlineStatusResp_SuccessDetail) Reset()
- func (x *GetUsersOnlineStatusResp_SuccessDetail) String() string
- type GetUsersOnlineStatusResp_SuccessResult
- func (*GetUsersOnlineStatusResp_SuccessResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersOnlineStatusResp_SuccessResult) GetDetailPlatformStatus() []*GetUsersOnlineStatusResp_SuccessDetail
- func (x *GetUsersOnlineStatusResp_SuccessResult) GetStatus() GetUsersOnlineStatusResp_Status
- func (x *GetUsersOnlineStatusResp_SuccessResult) GetUserID() string
- func (*GetUsersOnlineStatusResp_SuccessResult) ProtoMessage()
- func (x *GetUsersOnlineStatusResp_SuccessResult) ProtoReflect() protoreflect.Message
- func (x *GetUsersOnlineStatusResp_SuccessResult) Reset()
- func (x *GetUsersOnlineStatusResp_SuccessResult) String() string
- type KickUserConnsReq
- func (*KickUserConnsReq) Descriptor() ([]byte, []int)deprecated
- func (x *KickUserConnsReq) GetPlatformIDs() []string
- func (x *KickUserConnsReq) GetUserID() string
- func (*KickUserConnsReq) ProtoMessage()
- func (x *KickUserConnsReq) ProtoReflect() protoreflect.Message
- func (x *KickUserConnsReq) Reset()
- func (x *KickUserConnsReq) String() string
- type KickUserConnsResp
- func (*KickUserConnsResp) Descriptor() ([]byte, []int)deprecated
- func (x *KickUserConnsResp) GetErrCode() int32
- func (x *KickUserConnsResp) GetErrMsg() string
- func (*KickUserConnsResp) ProtoMessage()
- func (x *KickUserConnsResp) ProtoReflect() protoreflect.Message
- func (x *KickUserConnsResp) Reset()
- func (x *KickUserConnsResp) String() string
- type OnlineMessageRelayServiceClient
- type OnlineMessageRelayServiceServer
- type OnlinePushMsgReq
- func (*OnlinePushMsgReq) Descriptor() ([]byte, []int)deprecated
- func (x *OnlinePushMsgReq) GetMsgData() *chatpb.MsgData
- func (x *OnlinePushMsgReq) GetPushToUserID() string
- func (*OnlinePushMsgReq) ProtoMessage()
- func (x *OnlinePushMsgReq) ProtoReflect() protoreflect.Message
- func (x *OnlinePushMsgReq) Reset()
- func (x *OnlinePushMsgReq) String() string
- type OnlinePushMsgResp
- func (*OnlinePushMsgResp) Descriptor() ([]byte, []int)deprecated
- func (x *OnlinePushMsgResp) GetErrMsg() string
- func (x *OnlinePushMsgResp) GetSuccess() bool
- func (*OnlinePushMsgResp) ProtoMessage()
- func (x *OnlinePushMsgResp) ProtoReflect() protoreflect.Message
- func (x *OnlinePushMsgResp) Reset()
- func (x *OnlinePushMsgResp) String() string
- type UnimplementedOnlineMessageRelayServiceServer
- func (UnimplementedOnlineMessageRelayServiceServer) GetUsersOnlineStatus(context.Context, *GetUsersOnlineStatusReq) (*GetUsersOnlineStatusResp, error)
- func (UnimplementedOnlineMessageRelayServiceServer) KickUserConns(context.Context, *KickUserConnsReq) (*KickUserConnsResp, error)
- func (UnimplementedOnlineMessageRelayServiceServer) OnlinePushMsg(context.Context, *OnlinePushMsgReq) (*OnlinePushMsgResp, error)
- type UnsafeOnlineMessageRelayServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( GetUsersOnlineStatusResp_Status_name = map[int32]string{ 0: "ONLINE", 1: "OFFLINE", } GetUsersOnlineStatusResp_Status_value = map[string]int32{ "ONLINE": 0, "OFFLINE": 1, } )
Enum value maps for GetUsersOnlineStatusResp_Status.
var File_msg_gateway_proto protoreflect.FileDescriptor
var File_param_proto protoreflect.FileDescriptor
var OnlineMessageRelayService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "msg_gateway.OnlineMessageRelayService", HandlerType: (*OnlineMessageRelayServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "OnlinePushMsg", Handler: _OnlineMessageRelayService_OnlinePushMsg_Handler, }, { MethodName: "GetUsersOnlineStatus", Handler: _OnlineMessageRelayService_GetUsersOnlineStatus_Handler, }, { MethodName: "KickUserConns", Handler: _OnlineMessageRelayService_KickUserConns_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "msg-gateway.proto", }
OnlineMessageRelayService_ServiceDesc is the grpc.ServiceDesc for OnlineMessageRelayService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOnlineMessageRelayServiceServer ¶
func RegisterOnlineMessageRelayServiceServer(s grpc.ServiceRegistrar, srv OnlineMessageRelayServiceServer)
Types ¶
type BodyReq ¶
type BodyReq struct { ReqIdentifier uint32 `protobuf:"varint,1,opt,name=reqIdentifier,proto3" json:"reqIdentifier,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` SendID string `protobuf:"bytes,3,opt,name=sendID,proto3" json:"sendID,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BodyReq) Descriptor
deprecated
func (*BodyReq) GetReqIdentifier ¶
func (*BodyReq) ProtoMessage ¶
func (*BodyReq) ProtoMessage()
func (*BodyReq) ProtoReflect ¶
func (x *BodyReq) ProtoReflect() protoreflect.Message
type BodyResp ¶
type BodyResp struct { ReqIdentifier uint32 `protobuf:"varint,1,opt,name=reqIdentifier,proto3" json:"reqIdentifier,omitempty"` ErrCode uint32 `protobuf:"varint,2,opt,name=errCode,proto3" json:"errCode,omitempty"` ErrMsg string `protobuf:"bytes,3,opt,name=errMsg,proto3" json:"errMsg,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BodyResp) Descriptor
deprecated
func (*BodyResp) GetErrCode ¶
func (*BodyResp) GetReqIdentifier ¶
func (*BodyResp) ProtoMessage ¶
func (*BodyResp) ProtoMessage()
func (*BodyResp) ProtoReflect ¶
func (x *BodyResp) ProtoReflect() protoreflect.Message
type GetUsersOnlineStatusReq ¶
type GetUsersOnlineStatusReq struct { UserIDList []string `protobuf:"bytes,1,rep,name=userIDList,proto3" json:"userIDList,omitempty"` // contains filtered or unexported fields }
func (*GetUsersOnlineStatusReq) Descriptor
deprecated
func (*GetUsersOnlineStatusReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersOnlineStatusReq.ProtoReflect.Descriptor instead.
func (*GetUsersOnlineStatusReq) GetUserIDList ¶
func (x *GetUsersOnlineStatusReq) GetUserIDList() []string
func (*GetUsersOnlineStatusReq) ProtoMessage ¶
func (*GetUsersOnlineStatusReq) ProtoMessage()
func (*GetUsersOnlineStatusReq) ProtoReflect ¶
func (x *GetUsersOnlineStatusReq) ProtoReflect() protoreflect.Message
func (*GetUsersOnlineStatusReq) Reset ¶
func (x *GetUsersOnlineStatusReq) Reset()
func (*GetUsersOnlineStatusReq) String ¶
func (x *GetUsersOnlineStatusReq) String() string
type GetUsersOnlineStatusResp ¶
type GetUsersOnlineStatusResp struct { ErrCode int32 `protobuf:"varint,1,opt,name=errCode,proto3" json:"errCode,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` SuccessResult []*GetUsersOnlineStatusResp_SuccessResult `protobuf:"bytes,3,rep,name=successResult,proto3" json:"successResult,omitempty"` FailedResult []*GetUsersOnlineStatusResp_FailedDetail `protobuf:"bytes,4,rep,name=failedResult,proto3" json:"failedResult,omitempty"` // contains filtered or unexported fields }
func (*GetUsersOnlineStatusResp) Descriptor
deprecated
func (*GetUsersOnlineStatusResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersOnlineStatusResp.ProtoReflect.Descriptor instead.
func (*GetUsersOnlineStatusResp) GetErrCode ¶
func (x *GetUsersOnlineStatusResp) GetErrCode() int32
func (*GetUsersOnlineStatusResp) GetErrMsg ¶
func (x *GetUsersOnlineStatusResp) GetErrMsg() string
func (*GetUsersOnlineStatusResp) GetFailedResult ¶
func (x *GetUsersOnlineStatusResp) GetFailedResult() []*GetUsersOnlineStatusResp_FailedDetail
func (*GetUsersOnlineStatusResp) GetSuccessResult ¶
func (x *GetUsersOnlineStatusResp) GetSuccessResult() []*GetUsersOnlineStatusResp_SuccessResult
func (*GetUsersOnlineStatusResp) ProtoMessage ¶
func (*GetUsersOnlineStatusResp) ProtoMessage()
func (*GetUsersOnlineStatusResp) ProtoReflect ¶
func (x *GetUsersOnlineStatusResp) ProtoReflect() protoreflect.Message
func (*GetUsersOnlineStatusResp) Reset ¶
func (x *GetUsersOnlineStatusResp) Reset()
func (*GetUsersOnlineStatusResp) String ¶
func (x *GetUsersOnlineStatusResp) String() string
type GetUsersOnlineStatusResp_FailedDetail ¶
type GetUsersOnlineStatusResp_FailedDetail struct { UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` ErrCode int32 `protobuf:"varint,1,opt,name=errCode,proto3" json:"errCode,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*GetUsersOnlineStatusResp_FailedDetail) Descriptor
deprecated
func (*GetUsersOnlineStatusResp_FailedDetail) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersOnlineStatusResp_FailedDetail.ProtoReflect.Descriptor instead.
func (*GetUsersOnlineStatusResp_FailedDetail) GetErrCode ¶
func (x *GetUsersOnlineStatusResp_FailedDetail) GetErrCode() int32
func (*GetUsersOnlineStatusResp_FailedDetail) GetErrMsg ¶
func (x *GetUsersOnlineStatusResp_FailedDetail) GetErrMsg() string
func (*GetUsersOnlineStatusResp_FailedDetail) GetUserID ¶
func (x *GetUsersOnlineStatusResp_FailedDetail) GetUserID() string
func (*GetUsersOnlineStatusResp_FailedDetail) ProtoMessage ¶
func (*GetUsersOnlineStatusResp_FailedDetail) ProtoMessage()
func (*GetUsersOnlineStatusResp_FailedDetail) ProtoReflect ¶
func (x *GetUsersOnlineStatusResp_FailedDetail) ProtoReflect() protoreflect.Message
func (*GetUsersOnlineStatusResp_FailedDetail) Reset ¶
func (x *GetUsersOnlineStatusResp_FailedDetail) Reset()
func (*GetUsersOnlineStatusResp_FailedDetail) String ¶
func (x *GetUsersOnlineStatusResp_FailedDetail) String() string
type GetUsersOnlineStatusResp_Status ¶
type GetUsersOnlineStatusResp_Status int32
const ( GetUsersOnlineStatusResp_ONLINE GetUsersOnlineStatusResp_Status = 0 GetUsersOnlineStatusResp_OFFLINE GetUsersOnlineStatusResp_Status = 1 )
func (GetUsersOnlineStatusResp_Status) Descriptor ¶
func (GetUsersOnlineStatusResp_Status) Descriptor() protoreflect.EnumDescriptor
func (GetUsersOnlineStatusResp_Status) Enum ¶
func (x GetUsersOnlineStatusResp_Status) Enum() *GetUsersOnlineStatusResp_Status
func (GetUsersOnlineStatusResp_Status) EnumDescriptor
deprecated
func (GetUsersOnlineStatusResp_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetUsersOnlineStatusResp_Status.Descriptor instead.
func (GetUsersOnlineStatusResp_Status) Number ¶
func (x GetUsersOnlineStatusResp_Status) Number() protoreflect.EnumNumber
func (GetUsersOnlineStatusResp_Status) String ¶
func (x GetUsersOnlineStatusResp_Status) String() string
func (GetUsersOnlineStatusResp_Status) Type ¶
func (GetUsersOnlineStatusResp_Status) Type() protoreflect.EnumType
type GetUsersOnlineStatusResp_SuccessDetail ¶
type GetUsersOnlineStatusResp_SuccessDetail struct { Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` Status GetUsersOnlineStatusResp_Status `protobuf:"varint,2,opt,name=status,proto3,enum=msg_gateway.GetUsersOnlineStatusResp_Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetUsersOnlineStatusResp_SuccessDetail) Descriptor
deprecated
func (*GetUsersOnlineStatusResp_SuccessDetail) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersOnlineStatusResp_SuccessDetail.ProtoReflect.Descriptor instead.
func (*GetUsersOnlineStatusResp_SuccessDetail) GetPlatform ¶
func (x *GetUsersOnlineStatusResp_SuccessDetail) GetPlatform() string
func (*GetUsersOnlineStatusResp_SuccessDetail) GetStatus ¶
func (x *GetUsersOnlineStatusResp_SuccessDetail) GetStatus() GetUsersOnlineStatusResp_Status
func (*GetUsersOnlineStatusResp_SuccessDetail) ProtoMessage ¶
func (*GetUsersOnlineStatusResp_SuccessDetail) ProtoMessage()
func (*GetUsersOnlineStatusResp_SuccessDetail) ProtoReflect ¶
func (x *GetUsersOnlineStatusResp_SuccessDetail) ProtoReflect() protoreflect.Message
func (*GetUsersOnlineStatusResp_SuccessDetail) Reset ¶
func (x *GetUsersOnlineStatusResp_SuccessDetail) Reset()
func (*GetUsersOnlineStatusResp_SuccessDetail) String ¶
func (x *GetUsersOnlineStatusResp_SuccessDetail) String() string
type GetUsersOnlineStatusResp_SuccessResult ¶
type GetUsersOnlineStatusResp_SuccessResult struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Status GetUsersOnlineStatusResp_Status `protobuf:"varint,2,opt,name=status,proto3,enum=msg_gateway.GetUsersOnlineStatusResp_Status" json:"status,omitempty"` DetailPlatformStatus []*GetUsersOnlineStatusResp_SuccessDetail `protobuf:"bytes,3,rep,name=detailPlatformStatus,proto3" json:"detailPlatformStatus,omitempty"` // contains filtered or unexported fields }
func (*GetUsersOnlineStatusResp_SuccessResult) Descriptor
deprecated
func (*GetUsersOnlineStatusResp_SuccessResult) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersOnlineStatusResp_SuccessResult.ProtoReflect.Descriptor instead.
func (*GetUsersOnlineStatusResp_SuccessResult) GetDetailPlatformStatus ¶
func (x *GetUsersOnlineStatusResp_SuccessResult) GetDetailPlatformStatus() []*GetUsersOnlineStatusResp_SuccessDetail
func (*GetUsersOnlineStatusResp_SuccessResult) GetStatus ¶
func (x *GetUsersOnlineStatusResp_SuccessResult) GetStatus() GetUsersOnlineStatusResp_Status
func (*GetUsersOnlineStatusResp_SuccessResult) GetUserID ¶
func (x *GetUsersOnlineStatusResp_SuccessResult) GetUserID() string
func (*GetUsersOnlineStatusResp_SuccessResult) ProtoMessage ¶
func (*GetUsersOnlineStatusResp_SuccessResult) ProtoMessage()
func (*GetUsersOnlineStatusResp_SuccessResult) ProtoReflect ¶
func (x *GetUsersOnlineStatusResp_SuccessResult) ProtoReflect() protoreflect.Message
func (*GetUsersOnlineStatusResp_SuccessResult) Reset ¶
func (x *GetUsersOnlineStatusResp_SuccessResult) Reset()
func (*GetUsersOnlineStatusResp_SuccessResult) String ¶
func (x *GetUsersOnlineStatusResp_SuccessResult) String() string
type KickUserConnsReq ¶
type KickUserConnsReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` PlatformIDs []string `protobuf:"bytes,2,rep,name=platformIDs,proto3" json:"platformIDs,omitempty"` // contains filtered or unexported fields }
func (*KickUserConnsReq) Descriptor
deprecated
func (*KickUserConnsReq) Descriptor() ([]byte, []int)
Deprecated: Use KickUserConnsReq.ProtoReflect.Descriptor instead.
func (*KickUserConnsReq) GetPlatformIDs ¶
func (x *KickUserConnsReq) GetPlatformIDs() []string
func (*KickUserConnsReq) GetUserID ¶
func (x *KickUserConnsReq) GetUserID() string
func (*KickUserConnsReq) ProtoMessage ¶
func (*KickUserConnsReq) ProtoMessage()
func (*KickUserConnsReq) ProtoReflect ¶
func (x *KickUserConnsReq) ProtoReflect() protoreflect.Message
func (*KickUserConnsReq) Reset ¶
func (x *KickUserConnsReq) Reset()
func (*KickUserConnsReq) String ¶
func (x *KickUserConnsReq) String() string
type KickUserConnsResp ¶
type KickUserConnsResp struct { ErrCode int32 `protobuf:"varint,1,opt,name=errCode,proto3" json:"errCode,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*KickUserConnsResp) Descriptor
deprecated
func (*KickUserConnsResp) Descriptor() ([]byte, []int)
Deprecated: Use KickUserConnsResp.ProtoReflect.Descriptor instead.
func (*KickUserConnsResp) GetErrCode ¶
func (x *KickUserConnsResp) GetErrCode() int32
func (*KickUserConnsResp) GetErrMsg ¶
func (x *KickUserConnsResp) GetErrMsg() string
func (*KickUserConnsResp) ProtoMessage ¶
func (*KickUserConnsResp) ProtoMessage()
func (*KickUserConnsResp) ProtoReflect ¶
func (x *KickUserConnsResp) ProtoReflect() protoreflect.Message
func (*KickUserConnsResp) Reset ¶
func (x *KickUserConnsResp) Reset()
func (*KickUserConnsResp) String ¶
func (x *KickUserConnsResp) String() string
type OnlineMessageRelayServiceClient ¶
type OnlineMessageRelayServiceClient interface { OnlinePushMsg(ctx context.Context, in *OnlinePushMsgReq, opts ...grpc.CallOption) (*OnlinePushMsgResp, error) GetUsersOnlineStatus(ctx context.Context, in *GetUsersOnlineStatusReq, opts ...grpc.CallOption) (*GetUsersOnlineStatusResp, error) KickUserConns(ctx context.Context, in *KickUserConnsReq, opts ...grpc.CallOption) (*KickUserConnsResp, error) }
OnlineMessageRelayServiceClient is the client API for OnlineMessageRelayService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOnlineMessageRelayServiceClient ¶
func NewOnlineMessageRelayServiceClient(cc grpc.ClientConnInterface) OnlineMessageRelayServiceClient
type OnlineMessageRelayServiceServer ¶
type OnlineMessageRelayServiceServer interface { OnlinePushMsg(context.Context, *OnlinePushMsgReq) (*OnlinePushMsgResp, error) GetUsersOnlineStatus(context.Context, *GetUsersOnlineStatusReq) (*GetUsersOnlineStatusResp, error) KickUserConns(context.Context, *KickUserConnsReq) (*KickUserConnsResp, error) // contains filtered or unexported methods }
OnlineMessageRelayServiceServer is the server API for OnlineMessageRelayService service. All implementations must embed UnimplementedOnlineMessageRelayServiceServer for forward compatibility
type OnlinePushMsgReq ¶
type OnlinePushMsgReq struct { MsgData *chatpb.MsgData `protobuf:"bytes,2,opt,name=msgData,proto3" json:"msgData,omitempty"` PushToUserID string `protobuf:"bytes,3,opt,name=pushToUserID,proto3" json:"pushToUserID,omitempty"` // contains filtered or unexported fields }
func (*OnlinePushMsgReq) Descriptor
deprecated
func (*OnlinePushMsgReq) Descriptor() ([]byte, []int)
Deprecated: Use OnlinePushMsgReq.ProtoReflect.Descriptor instead.
func (*OnlinePushMsgReq) GetMsgData ¶
func (x *OnlinePushMsgReq) GetMsgData() *chatpb.MsgData
func (*OnlinePushMsgReq) GetPushToUserID ¶
func (x *OnlinePushMsgReq) GetPushToUserID() string
func (*OnlinePushMsgReq) ProtoMessage ¶
func (*OnlinePushMsgReq) ProtoMessage()
func (*OnlinePushMsgReq) ProtoReflect ¶
func (x *OnlinePushMsgReq) ProtoReflect() protoreflect.Message
func (*OnlinePushMsgReq) Reset ¶
func (x *OnlinePushMsgReq) Reset()
func (*OnlinePushMsgReq) String ¶
func (x *OnlinePushMsgReq) String() string
type OnlinePushMsgResp ¶
type OnlinePushMsgResp struct { Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` // contains filtered or unexported fields }
func (*OnlinePushMsgResp) Descriptor
deprecated
func (*OnlinePushMsgResp) Descriptor() ([]byte, []int)
Deprecated: Use OnlinePushMsgResp.ProtoReflect.Descriptor instead.
func (*OnlinePushMsgResp) GetErrMsg ¶
func (x *OnlinePushMsgResp) GetErrMsg() string
func (*OnlinePushMsgResp) GetSuccess ¶
func (x *OnlinePushMsgResp) GetSuccess() bool
func (*OnlinePushMsgResp) ProtoMessage ¶
func (*OnlinePushMsgResp) ProtoMessage()
func (*OnlinePushMsgResp) ProtoReflect ¶
func (x *OnlinePushMsgResp) ProtoReflect() protoreflect.Message
func (*OnlinePushMsgResp) Reset ¶
func (x *OnlinePushMsgResp) Reset()
func (*OnlinePushMsgResp) String ¶
func (x *OnlinePushMsgResp) String() string
type UnimplementedOnlineMessageRelayServiceServer ¶
type UnimplementedOnlineMessageRelayServiceServer struct { }
UnimplementedOnlineMessageRelayServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOnlineMessageRelayServiceServer) GetUsersOnlineStatus ¶
func (UnimplementedOnlineMessageRelayServiceServer) GetUsersOnlineStatus(context.Context, *GetUsersOnlineStatusReq) (*GetUsersOnlineStatusResp, error)
func (UnimplementedOnlineMessageRelayServiceServer) KickUserConns ¶
func (UnimplementedOnlineMessageRelayServiceServer) KickUserConns(context.Context, *KickUserConnsReq) (*KickUserConnsResp, error)
func (UnimplementedOnlineMessageRelayServiceServer) OnlinePushMsg ¶
func (UnimplementedOnlineMessageRelayServiceServer) OnlinePushMsg(context.Context, *OnlinePushMsgReq) (*OnlinePushMsgResp, error)
type UnsafeOnlineMessageRelayServiceServer ¶
type UnsafeOnlineMessageRelayServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOnlineMessageRelayServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OnlineMessageRelayServiceServer will result in compilation errors.