pb

package
v0.0.0-...-efd9455 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_msg_gateway_proto protoreflect.FileDescriptor
View Source
var File_param_proto protoreflect.FileDescriptor
View Source
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 GetUsersOnlineStatusReq

type GetUsersOnlineStatusReq struct {
	UserIDList  []string `protobuf:"bytes,1,rep,name=userIDList,proto3" json:"userIDList,omitempty"`
	OperationID string   `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"`
	OpUserID    string   `protobuf:"bytes,3,opt,name=opUserID,proto3" json:"opUserID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersOnlineStatusReq) Descriptor deprecated

func (*GetUsersOnlineStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use GetUsersOnlineStatusReq.ProtoReflect.Descriptor instead.

func (*GetUsersOnlineStatusReq) GetOpUserID

func (x *GetUsersOnlineStatusReq) GetOpUserID() string

func (*GetUsersOnlineStatusReq) GetOperationID

func (x *GetUsersOnlineStatusReq) GetOperationID() string

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 (*GetUsersOnlineStatusResp) GetSuccessResult

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 (*GetUsersOnlineStatusResp_FailedDetail) GetErrMsg

func (*GetUsersOnlineStatusResp_FailedDetail) GetUserID

func (*GetUsersOnlineStatusResp_FailedDetail) ProtoMessage

func (*GetUsersOnlineStatusResp_FailedDetail) ProtoMessage()

func (*GetUsersOnlineStatusResp_FailedDetail) ProtoReflect

func (*GetUsersOnlineStatusResp_FailedDetail) Reset

func (*GetUsersOnlineStatusResp_FailedDetail) String

type GetUsersOnlineStatusResp_SuccessDetail

type GetUsersOnlineStatusResp_SuccessDetail struct {
	Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	Status   string `protobuf:"bytes,2,opt,name=status,proto3" 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 (*GetUsersOnlineStatusResp_SuccessDetail) GetStatus

func (*GetUsersOnlineStatusResp_SuccessDetail) ProtoMessage

func (*GetUsersOnlineStatusResp_SuccessDetail) ProtoReflect

func (*GetUsersOnlineStatusResp_SuccessDetail) Reset

func (*GetUsersOnlineStatusResp_SuccessDetail) String

type GetUsersOnlineStatusResp_SuccessResult

type GetUsersOnlineStatusResp_SuccessResult struct {
	UserID               string                                    `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Status               string                                    `protobuf:"bytes,2,opt,name=status,proto3" 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 (*GetUsersOnlineStatusResp_SuccessResult) GetStatus

func (*GetUsersOnlineStatusResp_SuccessResult) GetUserID

func (*GetUsersOnlineStatusResp_SuccessResult) ProtoMessage

func (*GetUsersOnlineStatusResp_SuccessResult) ProtoReflect

func (*GetUsersOnlineStatusResp_SuccessResult) Reset

func (*GetUsersOnlineStatusResp_SuccessResult) 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.

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      *pb.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() *pb.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 {
	Resp []*SingleMsgToUser `protobuf:"bytes,1,rep,name=resp,proto3" json:"resp,omitempty"`
	// contains filtered or unexported fields
}

func (*OnlinePushMsgResp) Descriptor deprecated

func (*OnlinePushMsgResp) Descriptor() ([]byte, []int)

Deprecated: Use OnlinePushMsgResp.ProtoReflect.Descriptor instead.

func (*OnlinePushMsgResp) GetResp

func (x *OnlinePushMsgResp) GetResp() []*SingleMsgToUser

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 Req

type Req 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 (*Req) Descriptor deprecated

func (*Req) Descriptor() ([]byte, []int)

Deprecated: Use Req.ProtoReflect.Descriptor instead.

func (*Req) GetData

func (x *Req) GetData() []byte

func (*Req) GetReqIdentifier

func (x *Req) GetReqIdentifier() uint32

func (*Req) GetSendID

func (x *Req) GetSendID() string

func (*Req) GetToken

func (x *Req) GetToken() string

func (*Req) ProtoMessage

func (*Req) ProtoMessage()

func (*Req) ProtoReflect

func (x *Req) ProtoReflect() protoreflect.Message

func (*Req) Reset

func (x *Req) Reset()

func (*Req) String

func (x *Req) String() string

type Resp

type Resp 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 (*Resp) Descriptor deprecated

func (*Resp) Descriptor() ([]byte, []int)

Deprecated: Use Resp.ProtoReflect.Descriptor instead.

func (*Resp) GetData

func (x *Resp) GetData() []byte

func (*Resp) GetErrCode

func (x *Resp) GetErrCode() uint32

func (*Resp) GetErrMsg

func (x *Resp) GetErrMsg() string

func (*Resp) GetReqIdentifier

func (x *Resp) GetReqIdentifier() uint32

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) ProtoReflect

func (x *Resp) ProtoReflect() protoreflect.Message

func (*Resp) Reset

func (x *Resp) Reset()

func (*Resp) String

func (x *Resp) String() string

type SingleMsgToUser

type SingleMsgToUser struct {
	ResultCode     int64  `protobuf:"varint,1,opt,name=ResultCode,proto3" json:"ResultCode,omitempty"`
	RecvID         string `protobuf:"bytes,2,opt,name=RecvID,proto3" json:"RecvID,omitempty"`
	RecvPlatFormID int32  `protobuf:"varint,3,opt,name=RecvPlatFormID,proto3" json:"RecvPlatFormID,omitempty"`
	// contains filtered or unexported fields
}

func (*SingleMsgToUser) Descriptor deprecated

func (*SingleMsgToUser) Descriptor() ([]byte, []int)

Deprecated: Use SingleMsgToUser.ProtoReflect.Descriptor instead.

func (*SingleMsgToUser) GetRecvID

func (x *SingleMsgToUser) GetRecvID() string

func (*SingleMsgToUser) GetRecvPlatFormID

func (x *SingleMsgToUser) GetRecvPlatFormID() int32

func (*SingleMsgToUser) GetResultCode

func (x *SingleMsgToUser) GetResultCode() int64

func (*SingleMsgToUser) ProtoMessage

func (*SingleMsgToUser) ProtoMessage()

func (*SingleMsgToUser) ProtoReflect

func (x *SingleMsgToUser) ProtoReflect() protoreflect.Message

func (*SingleMsgToUser) Reset

func (x *SingleMsgToUser) Reset()

func (*SingleMsgToUser) String

func (x *SingleMsgToUser) String() string

type UnimplementedOnlineMessageRelayServiceServer

type UnimplementedOnlineMessageRelayServiceServer struct {
}

UnimplementedOnlineMessageRelayServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOnlineMessageRelayServiceServer) GetUsersOnlineStatus

func (UnimplementedOnlineMessageRelayServiceServer) KickUserConns

func (UnimplementedOnlineMessageRelayServiceServer) OnlinePushMsg

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.

Directories

Path Synopsis
go
pb

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL