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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RecvMsgOpt_name = map[int32]string{
		0: "ReceiveMessage",
		1: "NotReceiveMessage",
		2: "ReceiveNotNotifyMessage",
	}
	RecvMsgOpt_value = map[string]int32{
		"ReceiveMessage":          0,
		"NotReceiveMessage":       1,
		"ReceiveNotNotifyMessage": 2,
	}
)

Enum value maps for RecvMsgOpt.

View Source
var (
	UserCallbackReq_Event_name = map[int32]string{
		0: "Online",
		1: "Offline",
		2: "MsgTooOften",
	}
	UserCallbackReq_Event_value = map[string]int32{
		"Online":      0,
		"Offline":     1,
		"MsgTooOften": 2,
	}
)

Enum value maps for UserCallbackReq_Event.

View Source
var File_im_user_proto protoreflect.FileDescriptor
View Source
var ImUserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "imuser.imUserService",
	HandlerType: (*ImUserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IfAInBBlacklist",
			Handler:    _ImUserService_IfAInBBlacklist_Handler,
		},
		{
			MethodName: "IfAInBFriendList",
			Handler:    _ImUserService_IfAInBFriendList_Handler,
		},
		{
			MethodName: "GetSingleConversationRecvMsgOpts",
			Handler:    _ImUserService_GetSingleConversationRecvMsgOpts_Handler,
		},
		{
			MethodName: "GetUserListFromGroupWithOpt",
			Handler:    _ImUserService_GetUserListFromGroupWithOpt_Handler,
		},
		{
			MethodName: "VerifyToken",
			Handler:    _ImUserService_VerifyToken_Handler,
		},
		{
			MethodName: "IfPreviewMessage",
			Handler:    _ImUserService_IfPreviewMessage_Handler,
		},
		{
			MethodName: "UserCallback",
			Handler:    _ImUserService_UserCallback_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "im-user.proto",
}

ImUserService_ServiceDesc is the grpc.ServiceDesc for ImUserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterImUserServiceServer

func RegisterImUserServiceServer(s grpc.ServiceRegistrar, srv ImUserServiceServer)

Types

type CommonResp

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

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

Deprecated: Use CommonResp.ProtoReflect.Descriptor instead.

func (*CommonResp) GetErrCode

func (x *CommonResp) GetErrCode() int32

func (*CommonResp) GetErrMsg

func (x *CommonResp) GetErrMsg() string

func (*CommonResp) ProtoMessage

func (*CommonResp) ProtoMessage()

func (*CommonResp) ProtoReflect

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

func (*CommonResp) Reset

func (x *CommonResp) Reset()

func (*CommonResp) String

func (x *CommonResp) String() string

type GetGroupMemberIDListFromCacheReq

type GetGroupMemberIDListFromCacheReq struct {
	GroupID string `protobuf:"bytes,1,opt,name=GroupID,proto3" json:"GroupID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupMemberIDListFromCacheReq) Descriptor deprecated

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

Deprecated: Use GetGroupMemberIDListFromCacheReq.ProtoReflect.Descriptor instead.

func (*GetGroupMemberIDListFromCacheReq) GetGroupID

func (x *GetGroupMemberIDListFromCacheReq) GetGroupID() string

func (*GetGroupMemberIDListFromCacheReq) ProtoMessage

func (*GetGroupMemberIDListFromCacheReq) ProtoMessage()

func (*GetGroupMemberIDListFromCacheReq) ProtoReflect

func (*GetGroupMemberIDListFromCacheReq) Reset

func (*GetGroupMemberIDListFromCacheReq) String

type GetGroupMemberIDListFromCacheResp

type GetGroupMemberIDListFromCacheResp struct {
	CommonResp   *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	MemberIDList []string    `protobuf:"bytes,2,rep,name=memberIDList,proto3" json:"memberIDList,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupMemberIDListFromCacheResp) Descriptor deprecated

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

Deprecated: Use GetGroupMemberIDListFromCacheResp.ProtoReflect.Descriptor instead.

func (*GetGroupMemberIDListFromCacheResp) GetCommonResp

func (x *GetGroupMemberIDListFromCacheResp) GetCommonResp() *CommonResp

func (*GetGroupMemberIDListFromCacheResp) GetMemberIDList

func (x *GetGroupMemberIDListFromCacheResp) GetMemberIDList() []string

func (*GetGroupMemberIDListFromCacheResp) ProtoMessage

func (*GetGroupMemberIDListFromCacheResp) ProtoMessage()

func (*GetGroupMemberIDListFromCacheResp) ProtoReflect

func (*GetGroupMemberIDListFromCacheResp) Reset

func (*GetGroupMemberIDListFromCacheResp) String

type GetSingleConversationRecvMsgOptsReq

type GetSingleConversationRecvMsgOptsReq struct {
	UserID       string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	SenderUserID string `protobuf:"bytes,2,opt,name=senderUserID,proto3" json:"senderUserID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSingleConversationRecvMsgOptsReq) Descriptor deprecated

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

Deprecated: Use GetSingleConversationRecvMsgOptsReq.ProtoReflect.Descriptor instead.

func (*GetSingleConversationRecvMsgOptsReq) GetSenderUserID

func (x *GetSingleConversationRecvMsgOptsReq) GetSenderUserID() string

func (*GetSingleConversationRecvMsgOptsReq) GetUserID

func (*GetSingleConversationRecvMsgOptsReq) ProtoMessage

func (*GetSingleConversationRecvMsgOptsReq) ProtoMessage()

func (*GetSingleConversationRecvMsgOptsReq) ProtoReflect

func (*GetSingleConversationRecvMsgOptsReq) Reset

func (*GetSingleConversationRecvMsgOptsReq) String

type GetSingleConversationRecvMsgOptsResp

type GetSingleConversationRecvMsgOptsResp struct {
	CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	Opts       RecvMsgOpt  `protobuf:"varint,2,opt,name=opts,proto3,enum=imuser.RecvMsgOpt" json:"opts,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSingleConversationRecvMsgOptsResp) Descriptor deprecated

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

Deprecated: Use GetSingleConversationRecvMsgOptsResp.ProtoReflect.Descriptor instead.

func (*GetSingleConversationRecvMsgOptsResp) GetCommonResp

func (*GetSingleConversationRecvMsgOptsResp) GetOpts

func (*GetSingleConversationRecvMsgOptsResp) ProtoMessage

func (*GetSingleConversationRecvMsgOptsResp) ProtoMessage()

func (*GetSingleConversationRecvMsgOptsResp) ProtoReflect

func (*GetSingleConversationRecvMsgOptsResp) Reset

func (*GetSingleConversationRecvMsgOptsResp) String

type GetUserListFromGroupWithOptReq

type GetUserListFromGroupWithOptReq struct {
	GroupID    string       `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
	Opts       []RecvMsgOpt `protobuf:"varint,2,rep,packed,name=opts,proto3,enum=imuser.RecvMsgOpt" json:"opts,omitempty"`
	UserIDList []string     `protobuf:"bytes,3,rep,name=userIDList,proto3" json:"userIDList,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserListFromGroupWithOptReq) Descriptor deprecated

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

Deprecated: Use GetUserListFromGroupWithOptReq.ProtoReflect.Descriptor instead.

func (*GetUserListFromGroupWithOptReq) GetGroupID

func (x *GetUserListFromGroupWithOptReq) GetGroupID() string

func (*GetUserListFromGroupWithOptReq) GetOpts

func (*GetUserListFromGroupWithOptReq) GetUserIDList

func (x *GetUserListFromGroupWithOptReq) GetUserIDList() []string

func (*GetUserListFromGroupWithOptReq) ProtoMessage

func (*GetUserListFromGroupWithOptReq) ProtoMessage()

func (*GetUserListFromGroupWithOptReq) ProtoReflect

func (*GetUserListFromGroupWithOptReq) Reset

func (x *GetUserListFromGroupWithOptReq) Reset()

func (*GetUserListFromGroupWithOptReq) String

type GetUserListFromGroupWithOptResp

type GetUserListFromGroupWithOptResp struct {
	CommonResp    *CommonResp  `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	UserIDOptList []*UserIDOpt `protobuf:"bytes,2,rep,name=UserIDOptList,proto3" json:"UserIDOptList,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserListFromGroupWithOptResp) Descriptor deprecated

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

Deprecated: Use GetUserListFromGroupWithOptResp.ProtoReflect.Descriptor instead.

func (*GetUserListFromGroupWithOptResp) GetCommonResp

func (x *GetUserListFromGroupWithOptResp) GetCommonResp() *CommonResp

func (*GetUserListFromGroupWithOptResp) GetUserIDOptList

func (x *GetUserListFromGroupWithOptResp) GetUserIDOptList() []*UserIDOpt

func (*GetUserListFromGroupWithOptResp) ProtoMessage

func (*GetUserListFromGroupWithOptResp) ProtoMessage()

func (*GetUserListFromGroupWithOptResp) ProtoReflect

func (*GetUserListFromGroupWithOptResp) Reset

func (*GetUserListFromGroupWithOptResp) String

type IfAInBBlacklistReq

type IfAInBBlacklistReq struct {
	AUserID string `protobuf:"bytes,1,opt,name=aUserID,proto3" json:"aUserID,omitempty"`
	BUserID string `protobuf:"bytes,2,opt,name=bUserID,proto3" json:"bUserID,omitempty"`
	// contains filtered or unexported fields
}

func (*IfAInBBlacklistReq) Descriptor deprecated

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

Deprecated: Use IfAInBBlacklistReq.ProtoReflect.Descriptor instead.

func (*IfAInBBlacklistReq) GetAUserID

func (x *IfAInBBlacklistReq) GetAUserID() string

func (*IfAInBBlacklistReq) GetBUserID

func (x *IfAInBBlacklistReq) GetBUserID() string

func (*IfAInBBlacklistReq) ProtoMessage

func (*IfAInBBlacklistReq) ProtoMessage()

func (*IfAInBBlacklistReq) ProtoReflect

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

func (*IfAInBBlacklistReq) Reset

func (x *IfAInBBlacklistReq) Reset()

func (*IfAInBBlacklistReq) String

func (x *IfAInBBlacklistReq) String() string

type IfAInBBlacklistResp

type IfAInBBlacklistResp struct {
	CommonResp    *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	IsInBlacklist bool        `protobuf:"varint,2,opt,name=isInBlacklist,proto3" json:"isInBlacklist,omitempty"`
	// contains filtered or unexported fields
}

func (*IfAInBBlacklistResp) Descriptor deprecated

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

Deprecated: Use IfAInBBlacklistResp.ProtoReflect.Descriptor instead.

func (*IfAInBBlacklistResp) GetCommonResp

func (x *IfAInBBlacklistResp) GetCommonResp() *CommonResp

func (*IfAInBBlacklistResp) GetIsInBlacklist

func (x *IfAInBBlacklistResp) GetIsInBlacklist() bool

func (*IfAInBBlacklistResp) ProtoMessage

func (*IfAInBBlacklistResp) ProtoMessage()

func (*IfAInBBlacklistResp) ProtoReflect

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

func (*IfAInBBlacklistResp) Reset

func (x *IfAInBBlacklistResp) Reset()

func (*IfAInBBlacklistResp) String

func (x *IfAInBBlacklistResp) String() string

type IfAInBFriendListReq

type IfAInBFriendListReq struct {
	AUserID string `protobuf:"bytes,1,opt,name=aUserID,proto3" json:"aUserID,omitempty"`
	BUserID string `protobuf:"bytes,2,opt,name=bUserID,proto3" json:"bUserID,omitempty"`
	// contains filtered or unexported fields
}

func (*IfAInBFriendListReq) Descriptor deprecated

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

Deprecated: Use IfAInBFriendListReq.ProtoReflect.Descriptor instead.

func (*IfAInBFriendListReq) GetAUserID

func (x *IfAInBFriendListReq) GetAUserID() string

func (*IfAInBFriendListReq) GetBUserID

func (x *IfAInBFriendListReq) GetBUserID() string

func (*IfAInBFriendListReq) ProtoMessage

func (*IfAInBFriendListReq) ProtoMessage()

func (*IfAInBFriendListReq) ProtoReflect

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

func (*IfAInBFriendListReq) Reset

func (x *IfAInBFriendListReq) Reset()

func (*IfAInBFriendListReq) String

func (x *IfAInBFriendListReq) String() string

type IfAInBFriendListResp

type IfAInBFriendListResp struct {
	CommonResp     *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	IsInFriendList bool        `protobuf:"varint,2,opt,name=isInFriendList,proto3" json:"isInFriendList,omitempty"`
	// contains filtered or unexported fields
}

func (*IfAInBFriendListResp) Descriptor deprecated

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

Deprecated: Use IfAInBFriendListResp.ProtoReflect.Descriptor instead.

func (*IfAInBFriendListResp) GetCommonResp

func (x *IfAInBFriendListResp) GetCommonResp() *CommonResp

func (*IfAInBFriendListResp) GetIsInFriendList

func (x *IfAInBFriendListResp) GetIsInFriendList() bool

func (*IfAInBFriendListResp) ProtoMessage

func (*IfAInBFriendListResp) ProtoMessage()

func (*IfAInBFriendListResp) ProtoReflect

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

func (*IfAInBFriendListResp) Reset

func (x *IfAInBFriendListResp) Reset()

func (*IfAInBFriendListResp) String

func (x *IfAInBFriendListResp) String() string

type IfPreviewMessageReq

type IfPreviewMessageReq struct {
	SenderID   string `protobuf:"bytes,1,opt,name=senderID,proto3" json:"senderID,omitempty"`
	ReceiverID string `protobuf:"bytes,2,opt,name=receiverID,proto3" json:"receiverID,omitempty"`
	GroupID    string `protobuf:"bytes,3,opt,name=groupID,proto3" json:"groupID,omitempty"`
	// contains filtered or unexported fields
}

func (*IfPreviewMessageReq) Descriptor deprecated

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

Deprecated: Use IfPreviewMessageReq.ProtoReflect.Descriptor instead.

func (*IfPreviewMessageReq) GetGroupID

func (x *IfPreviewMessageReq) GetGroupID() string

func (*IfPreviewMessageReq) GetReceiverID

func (x *IfPreviewMessageReq) GetReceiverID() string

func (*IfPreviewMessageReq) GetSenderID

func (x *IfPreviewMessageReq) GetSenderID() string

func (*IfPreviewMessageReq) ProtoMessage

func (*IfPreviewMessageReq) ProtoMessage()

func (*IfPreviewMessageReq) ProtoReflect

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

func (*IfPreviewMessageReq) Reset

func (x *IfPreviewMessageReq) Reset()

func (*IfPreviewMessageReq) String

func (x *IfPreviewMessageReq) String() string

type IfPreviewMessageResp

type IfPreviewMessageResp struct {
	CommonResp   *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"`
	IfPreview    bool        `protobuf:"varint,2,opt,name=ifPreview,proto3" json:"ifPreview,omitempty"`
	ReplaceTitle string      `protobuf:"bytes,3,opt,name=replaceTitle,proto3" json:"replaceTitle,omitempty"`
	// contains filtered or unexported fields
}

func (*IfPreviewMessageResp) Descriptor deprecated

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

Deprecated: Use IfPreviewMessageResp.ProtoReflect.Descriptor instead.

func (*IfPreviewMessageResp) GetCommonResp

func (x *IfPreviewMessageResp) GetCommonResp() *CommonResp

func (*IfPreviewMessageResp) GetIfPreview

func (x *IfPreviewMessageResp) GetIfPreview() bool

func (*IfPreviewMessageResp) GetReplaceTitle

func (x *IfPreviewMessageResp) GetReplaceTitle() string

func (*IfPreviewMessageResp) ProtoMessage

func (*IfPreviewMessageResp) ProtoMessage()

func (*IfPreviewMessageResp) ProtoReflect

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

func (*IfPreviewMessageResp) Reset

func (x *IfPreviewMessageResp) Reset()

func (*IfPreviewMessageResp) String

func (x *IfPreviewMessageResp) String() string

type ImUserServiceClient

type ImUserServiceClient interface {
	// 判断用户A是否在B黑名单中
	IfAInBBlacklist(ctx context.Context, in *IfAInBBlacklistReq, opts ...grpc.CallOption) (*IfAInBBlacklistResp, error)
	// 判断用户A是否在B好友列表中
	IfAInBFriendList(ctx context.Context, in *IfAInBFriendListReq, opts ...grpc.CallOption) (*IfAInBFriendListResp, error)
	// 获取单聊会话的消息接收选项
	GetSingleConversationRecvMsgOpts(ctx context.Context, in *GetSingleConversationRecvMsgOptsReq, opts ...grpc.CallOption) (*GetSingleConversationRecvMsgOptsResp, error)
	// 获取群成员列表 通过消息接收选项
	GetUserListFromGroupWithOpt(ctx context.Context, in *GetUserListFromGroupWithOptReq, opts ...grpc.CallOption) (*GetUserListFromGroupWithOptResp, error)
	// 检查token
	VerifyToken(ctx context.Context, in *VerifyTokenReq, opts ...grpc.CallOption) (*VerifyTokenResp, error)
	// 是否预览消息
	IfPreviewMessage(ctx context.Context, in *IfPreviewMessageReq, opts ...grpc.CallOption) (*IfPreviewMessageResp, error)
	// 用户回调
	UserCallback(ctx context.Context, in *UserCallbackReq, opts ...grpc.CallOption) (*UserCallbackResp, error)
}

ImUserServiceClient is the client API for ImUserService 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 ImUserServiceServer

type ImUserServiceServer interface {
	// 判断用户A是否在B黑名单中
	IfAInBBlacklist(context.Context, *IfAInBBlacklistReq) (*IfAInBBlacklistResp, error)
	// 判断用户A是否在B好友列表中
	IfAInBFriendList(context.Context, *IfAInBFriendListReq) (*IfAInBFriendListResp, error)
	// 获取单聊会话的消息接收选项
	GetSingleConversationRecvMsgOpts(context.Context, *GetSingleConversationRecvMsgOptsReq) (*GetSingleConversationRecvMsgOptsResp, error)
	// 获取群成员列表 通过消息接收选项
	GetUserListFromGroupWithOpt(context.Context, *GetUserListFromGroupWithOptReq) (*GetUserListFromGroupWithOptResp, error)
	// 检查token
	VerifyToken(context.Context, *VerifyTokenReq) (*VerifyTokenResp, error)
	// 是否预览消息
	IfPreviewMessage(context.Context, *IfPreviewMessageReq) (*IfPreviewMessageResp, error)
	// 用户回调
	UserCallback(context.Context, *UserCallbackReq) (*UserCallbackResp, error)
	// contains filtered or unexported methods
}

ImUserServiceServer is the server API for ImUserService service. All implementations must embed UnimplementedImUserServiceServer for forward compatibility

type RecvMsgOpt

type RecvMsgOpt int32
const (
	RecvMsgOpt_ReceiveMessage          RecvMsgOpt = 0
	RecvMsgOpt_NotReceiveMessage       RecvMsgOpt = 1
	RecvMsgOpt_ReceiveNotNotifyMessage RecvMsgOpt = 2
)

func (RecvMsgOpt) Descriptor

func (RecvMsgOpt) Descriptor() protoreflect.EnumDescriptor

func (RecvMsgOpt) Enum

func (x RecvMsgOpt) Enum() *RecvMsgOpt

func (RecvMsgOpt) EnumDescriptor deprecated

func (RecvMsgOpt) EnumDescriptor() ([]byte, []int)

Deprecated: Use RecvMsgOpt.Descriptor instead.

func (RecvMsgOpt) Number

func (x RecvMsgOpt) Number() protoreflect.EnumNumber

func (RecvMsgOpt) String

func (x RecvMsgOpt) String() string

func (RecvMsgOpt) Type

type UnimplementedImUserServiceServer

type UnimplementedImUserServiceServer struct {
}

UnimplementedImUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedImUserServiceServer) IfAInBBlacklist

func (UnimplementedImUserServiceServer) IfAInBFriendList

func (UnimplementedImUserServiceServer) IfPreviewMessage

func (UnimplementedImUserServiceServer) UserCallback added in v1.0.1

func (UnimplementedImUserServiceServer) VerifyToken

type UnsafeImUserServiceServer

type UnsafeImUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeImUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ImUserServiceServer will result in compilation errors.

type UserCallbackReq added in v1.0.1

type UserCallbackReq struct {
	Event UserCallbackReq_Event `protobuf:"varint,1,opt,name=event,proto3,enum=imuser.UserCallbackReq_Event" json:"event,omitempty"`
	// 13位时间戳
	Timestamp  int64  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	UserID     string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"`
	Platform   string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"`
	RemoteAddr string `protobuf:"bytes,5,opt,name=RemoteAddr,proto3" json:"RemoteAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*UserCallbackReq) Descriptor deprecated added in v1.0.1

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

Deprecated: Use UserCallbackReq.ProtoReflect.Descriptor instead.

func (*UserCallbackReq) GetEvent added in v1.0.1

func (x *UserCallbackReq) GetEvent() UserCallbackReq_Event

func (*UserCallbackReq) GetPlatform added in v1.0.1

func (x *UserCallbackReq) GetPlatform() string

func (*UserCallbackReq) GetRemoteAddr added in v1.0.1

func (x *UserCallbackReq) GetRemoteAddr() string

func (*UserCallbackReq) GetTimestamp added in v1.0.1

func (x *UserCallbackReq) GetTimestamp() int64

func (*UserCallbackReq) GetUserID added in v1.0.1

func (x *UserCallbackReq) GetUserID() string

func (*UserCallbackReq) ProtoMessage added in v1.0.1

func (*UserCallbackReq) ProtoMessage()

func (*UserCallbackReq) ProtoReflect added in v1.0.1

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

func (*UserCallbackReq) Reset added in v1.0.1

func (x *UserCallbackReq) Reset()

func (*UserCallbackReq) String added in v1.0.1

func (x *UserCallbackReq) String() string

type UserCallbackReq_Event added in v1.0.1

type UserCallbackReq_Event int32
const (
	UserCallbackReq_Online      UserCallbackReq_Event = 0
	UserCallbackReq_Offline     UserCallbackReq_Event = 1
	UserCallbackReq_MsgTooOften UserCallbackReq_Event = 2
)

func (UserCallbackReq_Event) Descriptor added in v1.0.1

func (UserCallbackReq_Event) Enum added in v1.0.1

func (UserCallbackReq_Event) EnumDescriptor deprecated added in v1.0.1

func (UserCallbackReq_Event) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserCallbackReq_Event.Descriptor instead.

func (UserCallbackReq_Event) Number added in v1.0.1

func (UserCallbackReq_Event) String added in v1.0.1

func (x UserCallbackReq_Event) String() string

func (UserCallbackReq_Event) Type added in v1.0.1

type UserCallbackResp added in v1.0.1

type UserCallbackResp struct {
	// contains filtered or unexported fields
}

func (*UserCallbackResp) Descriptor deprecated added in v1.0.1

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

Deprecated: Use UserCallbackResp.ProtoReflect.Descriptor instead.

func (*UserCallbackResp) ProtoMessage added in v1.0.1

func (*UserCallbackResp) ProtoMessage()

func (*UserCallbackResp) ProtoReflect added in v1.0.1

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

func (*UserCallbackResp) Reset added in v1.0.1

func (x *UserCallbackResp) Reset()

func (*UserCallbackResp) String added in v1.0.1

func (x *UserCallbackResp) String() string

type UserIDOpt

type UserIDOpt struct {
	UserID string     `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Opts   RecvMsgOpt `protobuf:"varint,2,opt,name=opts,proto3,enum=imuser.RecvMsgOpt" json:"opts,omitempty"`
	// contains filtered or unexported fields
}

func (*UserIDOpt) Descriptor deprecated

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

Deprecated: Use UserIDOpt.ProtoReflect.Descriptor instead.

func (*UserIDOpt) GetOpts

func (x *UserIDOpt) GetOpts() RecvMsgOpt

func (*UserIDOpt) GetUserID

func (x *UserIDOpt) GetUserID() string

func (*UserIDOpt) ProtoMessage

func (*UserIDOpt) ProtoMessage()

func (*UserIDOpt) ProtoReflect

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

func (*UserIDOpt) Reset

func (x *UserIDOpt) Reset()

func (*UserIDOpt) String

func (x *UserIDOpt) String() string

type UserInfo

type UserInfo struct {
	UserID         string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Nickname       string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
	FaceURL        string `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL,omitempty"`
	Gender         int32  `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"`
	PhoneNumber    string `protobuf:"bytes,5,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
	Birth          uint32 `protobuf:"varint,6,opt,name=birth,proto3" json:"birth,omitempty"`
	Email          string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
	Ex             string `protobuf:"bytes,8,opt,name=ex,proto3" json:"ex,omitempty"`
	CreateTime     uint32 `protobuf:"varint,9,opt,name=createTime,proto3" json:"createTime,omitempty"`
	AppMangerLevel int32  `protobuf:"varint,10,opt,name=appMangerLevel,proto3" json:"appMangerLevel,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetAppMangerLevel

func (x *UserInfo) GetAppMangerLevel() int32

func (*UserInfo) GetBirth

func (x *UserInfo) GetBirth() uint32

func (*UserInfo) GetCreateTime

func (x *UserInfo) GetCreateTime() uint32

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetEx

func (x *UserInfo) GetEx() string

func (*UserInfo) GetFaceURL

func (x *UserInfo) GetFaceURL() string

func (*UserInfo) GetGender

func (x *UserInfo) GetGender() int32

func (*UserInfo) GetNickname

func (x *UserInfo) GetNickname() string

func (*UserInfo) GetPhoneNumber

func (x *UserInfo) GetPhoneNumber() string

func (*UserInfo) GetUserID

func (x *UserInfo) GetUserID() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type VerifyTokenReq

type VerifyTokenReq struct {
	Token    string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	SendID   string `protobuf:"bytes,3,opt,name=sendID,proto3" json:"sendID,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyTokenReq) Descriptor deprecated

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

Deprecated: Use VerifyTokenReq.ProtoReflect.Descriptor instead.

func (*VerifyTokenReq) GetPlatform

func (x *VerifyTokenReq) GetPlatform() string

func (*VerifyTokenReq) GetSendID

func (x *VerifyTokenReq) GetSendID() string

func (*VerifyTokenReq) GetToken

func (x *VerifyTokenReq) GetToken() string

func (*VerifyTokenReq) ProtoMessage

func (*VerifyTokenReq) ProtoMessage()

func (*VerifyTokenReq) ProtoReflect

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

func (*VerifyTokenReq) Reset

func (x *VerifyTokenReq) Reset()

func (*VerifyTokenReq) String

func (x *VerifyTokenReq) String() string

type VerifyTokenResp

type VerifyTokenResp struct {
	Uid     string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Success bool   `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	ErrMsg  string `protobuf:"bytes,3,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyTokenResp) Descriptor deprecated

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

Deprecated: Use VerifyTokenResp.ProtoReflect.Descriptor instead.

func (*VerifyTokenResp) GetErrMsg

func (x *VerifyTokenResp) GetErrMsg() string

func (*VerifyTokenResp) GetSuccess

func (x *VerifyTokenResp) GetSuccess() bool

func (*VerifyTokenResp) GetUid

func (x *VerifyTokenResp) GetUid() string

func (*VerifyTokenResp) ProtoMessage

func (*VerifyTokenResp) ProtoMessage()

func (*VerifyTokenResp) ProtoReflect

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

func (*VerifyTokenResp) Reset

func (x *VerifyTokenResp) Reset()

func (*VerifyTokenResp) String

func (x *VerifyTokenResp) String() string

Jump to

Keyboard shortcuts

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