oidb

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: AGPL-3.0 Imports: 11 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 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 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 ParseImageUploadResp

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

func ParseOidbPacket

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

func ParsePokeResp

func ParsePokeResp(data []byte) error

func ParseSetGroupRequestResp

func ParseSetGroupRequestResp(data []byte) 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 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, data []byte) (*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 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 BuildImageUploadReq

func BuildImageUploadReq(targetUid string, data []byte) (*OidbPacket, error)

func BuildOidbPacket

func BuildOidbPacket(cmd, subCmd uint32, body any, isLafter, isUid bool) (*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