oidb

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 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 ParseFetchClientKeyResp added in v0.0.15

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

func ParseFetchCookieResp added in v0.0.15

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

func ParseFetchFriendsResp

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

func ParseFetchGroupRequestsReq

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

func ParseFetchGroupSystemMessagesReq added in v0.0.13

func ParseFetchGroupSystemMessagesReq(data []byte, groupUin ...uint32) ([]*entity.GroupJoinRequest, 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 ParseFetchUserInfoResp added in v0.0.13

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

func ParseFriendLikeResp

func ParseFriendLikeResp(data []byte) error

func ParseGroupFSDownloadResp added in v0.0.15

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

func ParseGroupFileUploadResp added in v0.0.17

func ParseGroupFileUploadResp(data []byte) (*oidb.OidbSvcTrpcTcp0X6D6Response, error)

func ParseGroupImageDownloadResp added in v0.0.15

func ParseGroupImageDownloadResp(data []byte) (string, 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 ParseGroupSendFileResp added in v0.0.17

func ParseGroupSendFileResp(data []byte) (*oidb.OidbSvcTrpcTcpBase, 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 ParsePrivateFileDownloadResp added in v0.0.15

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

func ParsePrivateFileUploadResp added in v0.0.17

func ParsePrivateFileUploadResp(data []byte) (*oidb.OidbSvcTrpcTcp0XE37Response, error)

func ParsePrivateImageDownloadResp added in v0.0.15

func ParsePrivateImageDownloadResp(data []byte) (string, 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 ParseSetFriendRequestResp added in v0.0.15

func ParseSetFriendRequestResp(data []byte) 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 BuildFetchClientKeyReq added in v0.0.15

func BuildFetchClientKeyReq() (*OidbPacket, error)

func BuildFetchCookieReq added in v0.0.15

func BuildFetchCookieReq(domains []string) (*OidbPacket, error)

func BuildFetchFriendsReq

func BuildFetchFriendsReq(token uint32) (*OidbPacket, error)

BuildFetchFriendsReq OidbSvcTrpcTcp.0xfd4_1

func BuildFetchGroupRequestsReq

func BuildFetchGroupRequestsReq() (*OidbPacket, error)

func BuildFetchGroupSystemMessagesReq added in v0.0.13

func BuildFetchGroupSystemMessagesReq(count uint32) (*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 BuildFetchUserInfoReq added in v0.0.13

func BuildFetchUserInfoReq[T ~string | ~uint32](value T) (*OidbPacket, error)

func BuildFriendLikeReq

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

func BuildFriendPokeReq

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

func BuildGroupFSDownloadReq added in v0.0.15

func BuildGroupFSDownloadReq(groupUin uint32, fileId string) (*OidbPacket, error)

func BuildGroupFileUploadReq added in v0.0.17

func BuildGroupFileUploadReq(groupUin uint32, file *message.FileElement) (*OidbPacket, error)

func BuildGroupImageDownloadReq added in v0.0.15

func BuildGroupImageDownloadReq(groupUin uint32, node *oidb2.IndexNode) (*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 BuildGroupSendFileReq added in v0.0.17

func BuildGroupSendFileReq(groupUin uint32, fileKey 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 BuildPrivateFileDownloadReq added in v0.0.15

func BuildPrivateFileDownloadReq(selfUid string, fileUUID string, fileHash string) (*OidbPacket, error)

func BuildPrivateFileUploadReq added in v0.0.17

func BuildPrivateFileUploadReq(selfUid string, targetUid string, file *message.FileElement) (*OidbPacket, error)

func BuildPrivateImageDownloadReq added in v0.0.15

func BuildPrivateImageDownloadReq(selfUid string, node *oidb2.IndexNode) (*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 BuildSetFriendRequest added in v0.0.15

func BuildSetFriendRequest(accept bool, targetUid string) (*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