pb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 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 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) Descriptor() ([]byte, []int)

Deprecated: Use BodyReq.ProtoReflect.Descriptor instead.

func (*BodyReq) GetData

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

func (*BodyReq) GetReqIdentifier

func (x *BodyReq) GetReqIdentifier() uint32

func (*BodyReq) GetSendID

func (x *BodyReq) GetSendID() string

func (*BodyReq) GetToken

func (x *BodyReq) GetToken() string

func (*BodyReq) ProtoMessage

func (*BodyReq) ProtoMessage()

func (*BodyReq) ProtoReflect

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

func (*BodyReq) Reset

func (x *BodyReq) Reset()

func (*BodyReq) String

func (x *BodyReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use BodyResp.ProtoReflect.Descriptor instead.

func (*BodyResp) GetData

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

func (*BodyResp) GetErrCode

func (x *BodyResp) GetErrCode() uint32

func (*BodyResp) GetErrMsg

func (x *BodyResp) GetErrMsg() string

func (*BodyResp) GetReqIdentifier

func (x *BodyResp) GetReqIdentifier() uint32

func (*BodyResp) ProtoMessage

func (*BodyResp) ProtoMessage()

func (*BodyResp) ProtoReflect

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

func (*BodyResp) Reset

func (x *BodyResp) Reset()

func (*BodyResp) String

func (x *BodyResp) String() string

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 {
	StatusList []*GetUsersOnlineStatusResp_UserStatus `protobuf:"bytes,1,rep,name=statusList,proto3" json:"statusList,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersOnlineStatusResp) Descriptor deprecated

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

Deprecated: Use GetUsersOnlineStatusResp.ProtoReflect.Descriptor instead.

func (*GetUsersOnlineStatusResp) GetStatusList added in v1.0.2

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_UserStatus added in v1.0.2

type GetUsersOnlineStatusResp_UserStatus struct {
	UserID          string            `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	PlatformAddrMap map[string]string `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetUsersOnlineStatusResp_UserStatus) Descriptor deprecated added in v1.0.2

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

Deprecated: Use GetUsersOnlineStatusResp_UserStatus.ProtoReflect.Descriptor instead.

func (*GetUsersOnlineStatusResp_UserStatus) GetPlatformAddrMap added in v1.0.2

func (x *GetUsersOnlineStatusResp_UserStatus) GetPlatformAddrMap() map[string]string

func (*GetUsersOnlineStatusResp_UserStatus) GetUserID added in v1.0.2

func (*GetUsersOnlineStatusResp_UserStatus) ProtoMessage added in v1.0.2

func (*GetUsersOnlineStatusResp_UserStatus) ProtoMessage()

func (*GetUsersOnlineStatusResp_UserStatus) ProtoReflect added in v1.0.2

func (*GetUsersOnlineStatusResp_UserStatus) Reset added in v1.0.2

func (*GetUsersOnlineStatusResp_UserStatus) String added in v1.0.2

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 KickUserConnsToMQ added in v1.0.2

type KickUserConnsToMQ 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"`
	TraceID     string   `protobuf:"bytes,3,opt,name=traceID,proto3" json:"traceID,omitempty"`
	// contains filtered or unexported fields
}

func (*KickUserConnsToMQ) Descriptor deprecated added in v1.0.2

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

Deprecated: Use KickUserConnsToMQ.ProtoReflect.Descriptor instead.

func (*KickUserConnsToMQ) GetPlatformIDs added in v1.0.2

func (x *KickUserConnsToMQ) GetPlatformIDs() []string

func (*KickUserConnsToMQ) GetTraceID added in v1.0.2

func (x *KickUserConnsToMQ) GetTraceID() string

func (*KickUserConnsToMQ) GetUserID added in v1.0.2

func (x *KickUserConnsToMQ) GetUserID() string

func (*KickUserConnsToMQ) ProtoMessage added in v1.0.2

func (*KickUserConnsToMQ) ProtoMessage()

func (*KickUserConnsToMQ) ProtoReflect added in v1.0.2

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

func (*KickUserConnsToMQ) Reset added in v1.0.2

func (x *KickUserConnsToMQ) Reset()

func (*KickUserConnsToMQ) String added in v1.0.2

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

Jump to

Keyboard shortcuts

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