Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanPreprocess ¶ added in v0.0.11
CanPreprocess 实现预处理接口,对事件的uid进行转换等操作
type FriendPokeEvent ¶ added in v0.0.11
FriendPokeEvent 好友戳一戳事件 from miraigo
func ParsePokeEvent ¶ added in v0.0.11
func ParsePokeEvent(event *message.GeneralGrayTipInfo) *FriendPokeEvent
func (*FriendPokeEvent) Content ¶ added in v0.0.11
func (g *FriendPokeEvent) Content() string
func (*FriendPokeEvent) From ¶ added in v0.0.11
func (g *FriendPokeEvent) From() uint32
type FriendRecall ¶
type FriendRecall struct {
FromUin uint32
FromUid string
Sequence uint64
Time uint32
Random uint32
}
func ParseFriendRecallEvent ¶
func ParseFriendRecallEvent(event *message.FriendRecall) *FriendRecall
func (*FriendRecall) ResolveUin ¶ added in v0.0.11
func (fe *FriendRecall) ResolveUin(f func(uid string) uint32)
type GroupDigestEvent ¶ added in v0.0.11
type GroupDigestEvent struct {
GroupUin uint32
MessageID uint32
InternalMessageID uint32
OperationType uint32 // 1 -> 设置精华消息, 2 -> 移除精华消息
OperateTime uint32
SenderUin uint32
OperatorUin uint32
SenderNick string
OperatorNick string
}
GroupDigestEvent 群精华消息 from miraigo
func ParseGroupDigestEvent ¶ added in v0.0.11
func ParseGroupDigestEvent(event *message.EssenceNotify) *GroupDigestEvent
func (*GroupDigestEvent) IsSet ¶ added in v0.0.11
func (g *GroupDigestEvent) IsSet() bool
type GroupEvent ¶
type GroupEvent struct {
GroupUin uint32
}
type GroupInvite ¶
func ParseInviteNotice ¶
func ParseInviteNotice(event *message.GroupInvite) *GroupInvite
ParseInviteNotice 被邀请加群
func (*GroupInvite) ResolveUin ¶ added in v0.0.11
func (g *GroupInvite) ResolveUin(f func(uid string) uint32)
type GroupMemberDecrease ¶
type GroupMemberDecrease struct {
GroupEvent
MemberUid string
MemberUin uint32
OperatorUid string
OperatorUin uint32
ExitType uint32
}
func ParseMemberDecreaseEvent ¶
func ParseMemberDecreaseEvent(event *message.GroupChange) *GroupMemberDecrease
func (*GroupMemberDecrease) IsKicked ¶
func (g *GroupMemberDecrease) IsKicked() bool
func (*GroupMemberDecrease) ResolveUin ¶ added in v0.0.11
func (g *GroupMemberDecrease) ResolveUin(f func(uid string) uint32)
type GroupMemberIncrease ¶
type GroupMemberIncrease struct {
GroupEvent
MemberUid string
MemberUin uint32
InvitorUid string
InvitorUin uint32
JoinType uint32
}
func ParseMemberIncreaseEvent ¶
func ParseMemberIncreaseEvent(event *message.GroupChange) *GroupMemberIncrease
func (*GroupMemberIncrease) ResolveUin ¶ added in v0.0.11
func (g *GroupMemberIncrease) ResolveUin(f func(uid string) uint32)
type GroupMemberJoinRequest ¶
type GroupMemberJoinRequest struct {
GroupEvent
TargetUid string
TargetUin uint32
InvitorUid string
InvitorUin uint32
Answer string // 问题:(.*)答案:(.*)
}
func ParseRequestInvitationNotice ¶
func ParseRequestInvitationNotice(event *message.GroupInvitation) *GroupMemberJoinRequest
ParseRequestInvitationNotice 成员被邀请加群
func ParseRequestJoinNotice ¶
func ParseRequestJoinNotice(event *message.GroupJoin) *GroupMemberJoinRequest
ParseRequestJoinNotice 成员主动加群
func (*GroupMemberJoinRequest) ResolveUin ¶ added in v0.0.11
func (g *GroupMemberJoinRequest) ResolveUin(f func(uid string) uint32)
type GroupMute ¶
type GroupMute struct {
GroupEvent
OperatorUid string
OperatorUin uint32
TargetUid string // when TargetUid is empty, mute all members
TargetUin uint32
Duration uint32 // Duration == math.MaxUint32 when means mute all
}
func ParseGroupMuteEvent ¶
func (*GroupMute) ResolveUin ¶ added in v0.0.11
type GroupPokeEvent ¶ added in v0.0.11
type GroupPokeEvent struct {
GroupUin uint32
Sender uint32
Receiver uint32
Suffix string
Action string
}
GroupPokeEvent 群戳一戳事件 from miraigo
func PaeseGroupPokeEvent ¶ added in v0.0.11
func PaeseGroupPokeEvent(event *message.NotifyMessageBody, groupUin uint32) *GroupPokeEvent
func (*GroupPokeEvent) Content ¶ added in v0.0.11
func (g *GroupPokeEvent) Content() string
func (*GroupPokeEvent) From ¶ added in v0.0.11
func (g *GroupPokeEvent) From() uint32
type GroupRecall ¶
type GroupRecall struct {
GroupEvent
AuthorUid string
AuthorUin uint32
OperatorUid string
OperatorUin uint32
Sequence uint64
Time uint32
Random uint32
}
func ParseGroupRecallEvent ¶
func ParseGroupRecallEvent(event *message.NotifyMessageBody) *GroupRecall
func (*GroupRecall) ResolveUin ¶ added in v0.0.11
func (g *GroupRecall) ResolveUin(f func(uid string) uint32)
type INotifyEvent ¶ added in v0.0.11
type NewFriendRequest ¶ added in v0.0.11
func ParseFriendRequestNotice ¶
func ParseFriendRequestNotice(event *message.FriendRequest, msg *message.PushMsg) *NewFriendRequest
type Rename ¶
func ParseFriendRenameEvent ¶
func ParseFriendRenameEvent(event *message.FriendRenameMsg) *Rename
func ParseSelfRenameEvent ¶
func ParseSelfRenameEvent(event *message.SelfRenameMsg, sig *auth.SigInfo) *Rename
func (*Rename) ResolveUin ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.