oidb

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(data []byte) error

func CheckTypedError

func CheckTypedError[T any](data []byte) error

func ParseFetchFriendsResp

func ParseFetchFriendsResp(data []byte) ([]*entity.Friend, error)

func ParseFetchGroupRequestsReq

func ParseFetchGroupRequestsReq(data []byte) (*oidb.OidbSvcTrpcTcp0X10C0_1Response, error)

func ParseFetchGroupsResp

func ParseFetchGroupsResp(data []byte) ([]*entity.Group, error)

func ParseFetchMemberResp added in v0.0.11

func ParseFetchMemberResp(data []byte) (*entity.GroupMember, error)

func ParseFetchMembersResp

func ParseFetchMembersResp(data []byte) ([]*entity.GroupMember, string, error)

func ParseFriendLikeResp

func ParseFriendLikeResp(data []byte) error

func ParseGroupImageUploadResp

func ParseGroupImageUploadResp(data []byte) (*oidb.NTV2RichMediaResp, error)

func ParseGroupKickMemberResp

func ParseGroupKickMemberResp(data []byte) error

func ParseGroupLeaveResp

func ParseGroupLeaveResp(data []byte) error

func ParseGroupMuteGlobalResp

func ParseGroupMuteGlobalResp(data []byte) error

func ParseGroupMuteMemberResp

func ParseGroupMuteMemberResp(data []byte) error

ParseGroupMuteMemberResp 失败了会返回错误原因

func ParseGroupRecordDownloadResp added in v0.0.11

func ParseGroupRecordDownloadResp(data []byte) (string, error)

func ParseGroupRecordUploadResp added in v0.0.11

func ParseGroupRecordUploadResp(data []byte) (*oidb.NTV2RichMediaResp, error)

func ParseGroupRemarkResp

func ParseGroupRemarkResp(data []byte) error

func ParseGroupRenameMemberResp

func ParseGroupRenameMemberResp(data []byte) error

func ParseGroupRenameResp

func ParseGroupRenameResp(data []byte) error

func ParseGroupSetAdminResp

func ParseGroupSetAdminResp(data []byte) error

func ParseGroupSetReactionResp

func ParseGroupSetReactionResp(data []byte) error

func ParseGroupSetSpecialTitleResp

func ParseGroupSetSpecialTitleResp(data []byte) error

func ParseOidbPacket

func ParseOidbPacket(b []byte, pkt any) (oidbBaseResp oidb.OidbSvcTrpcTcpBase, err error)

func ParsePokeResp

func ParsePokeResp(data []byte) error

func ParsePrivateImageUploadResp added in v0.0.11

func ParsePrivateImageUploadResp(data []byte) (*oidb.NTV2RichMediaResp, error)

func ParsePrivateRecordDownloadResp added in v0.0.11

func ParsePrivateRecordDownloadResp(data []byte) (string, error)

func ParsePrivateRecordUploadResp added in v0.0.11

func ParsePrivateRecordUploadResp(data []byte) (*oidb.NTV2RichMediaResp, error)

func ParseSetGroupRequestResp

func ParseSetGroupRequestResp(data []byte) error

func ParseTypedError added in v0.0.11

func ParseTypedError[T any](data []byte) (*T, error)

Types

type OidbPacket

type OidbPacket struct {
	Cmd       string
	Data      []byte
	ExtraData []byte
}

func BuildFetchFriendsReq

func BuildFetchFriendsReq() (*OidbPacket, error)

BuildFetchFriendsReq OidbSvcTrpcTcp.0xfd4_1

func BuildFetchGroupRequestsReq

func BuildFetchGroupRequestsReq() (*OidbPacket, error)

func BuildFetchGroupsReq

func BuildFetchGroupsReq() (*OidbPacket, error)

func BuildFetchMemberReq added in v0.0.11

func BuildFetchMemberReq(groupUin uint32, memberUid string) (*OidbPacket, error)

func BuildFetchMembersReq

func BuildFetchMembersReq(groupUin uint32, token string) (*OidbPacket, error)

func BuildFriendLikeReq

func BuildFriendLikeReq(uid string, count uint32) (*OidbPacket, error)

func BuildFriendPokeReq

func BuildFriendPokeReq(uin uint32) (*OidbPacket, error)

func BuildGroupImageUploadReq

func BuildGroupImageUploadReq(groupUin uint32, image *message.ImageElement) (*OidbPacket, error)

func BuildGroupKickMemberReq

func BuildGroupKickMemberReq(groupUin uint32, uid string, rejectAddRequest bool) (*OidbPacket, error)

func BuildGroupLeaveReq

func BuildGroupLeaveReq(groupUin uint32) (*OidbPacket, error)

func BuildGroupMuteGlobalReq

func BuildGroupMuteGlobalReq(groupUin uint32, isMute bool) (*OidbPacket, error)

func BuildGroupMuteMemberReq

func BuildGroupMuteMemberReq(groupUin, duration uint32, uid string) (*OidbPacket, error)

func BuildGroupPokeReq

func BuildGroupPokeReq(groupUin, uin uint32) (*OidbPacket, error)

func BuildGroupRecordDownloadReq added in v0.0.11

func BuildGroupRecordDownloadReq(grpUin uint32, node *oidb.IndexNode) (*OidbPacket, error)

func BuildGroupRecordUploadReq added in v0.0.11

func BuildGroupRecordUploadReq(groupUin uint32, record *message.VoiceElement) (*OidbPacket, error)

func BuildGroupRemarkReq

func BuildGroupRemarkReq(groupUin uint32, mark string) (*OidbPacket, error)

func BuildGroupRenameMemberReq

func BuildGroupRenameMemberReq(groupUin uint32, uid, name string) (*OidbPacket, error)

func BuildGroupRenameReq

func BuildGroupRenameReq(groupUin uint32, name string) (*OidbPacket, error)

func BuildGroupSetAdminReq

func BuildGroupSetAdminReq(groupUin uint32, uid string, isAdmin bool) (*OidbPacket, error)

func BuildGroupSetReactionReq

func BuildGroupSetReactionReq(groupUin, sequence uint32, code string) (*OidbPacket, error)

func BuildGroupSetSpecialTitleReq

func BuildGroupSetSpecialTitleReq(groupUin uint32, uid, title string) (*OidbPacket, error)

func BuildOidbPacket

func BuildOidbPacket(cmd, subCmd uint32, body any, isLafter, isUid bool) (*OidbPacket, error)

func BuildPrivateImageUploadReq added in v0.0.11

func BuildPrivateImageUploadReq(targetUid string, image *message.ImageElement) (*OidbPacket, error)

func BuildPrivateRecordDownloadReq added in v0.0.11

func BuildPrivateRecordDownloadReq(selfUid string, node *oidb.IndexNode) (*OidbPacket, error)

BuildPrivateRecordDownloadReq 私聊语音

func BuildPrivateRecordUploadReq added in v0.0.11

func BuildPrivateRecordUploadReq(targetUid string, record *message.VoiceElement) (*OidbPacket, error)

func BuildSetGroupRequestReq

func BuildSetGroupRequestReq(accept bool, sequence uint64, typ uint32, groupUin uint32, message string) (*OidbPacket, error)

Jump to

Keyboard shortcuts

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