Versions in this module Expand all Collapse all v1 v1.0.0 Jul 27, 2023 Changes in this version + const SDKDataExpiredErrMsg + const SDKDecryptErrMsg + const SDKEncryptKeyErrMsg + const SDKErrMsg + const SDKFileIdErrMsg + const SDKIPNotWhiteListErrMsg + const SDKNetworkErrMsg + const SDKParamsErrMsg + const SDKParseErrMsg + const SDKSecretErrMsg + const SDKSecretMissErrMsg + const SDKSystemErrMsg + const SDKTokenExpiredErrMsg + func RSADecrypt(privateKey string, ciphertext []byte) ([]byte, error) + func RSADecryptBase64(privateKey string, cryptoText string) ([]byte, error) + type AgreeMessage struct + Agree struct{ ... } + type BaseMessage struct + Action string + From string + MsgId string + MsgTime int64 + MsgType string + RoomId string + ToList []string + type CalendarMessage struct + Calendar struct{ ... } + type CardMessage struct + Card struct{ ... } + type ChatData struct + EncryptChatMsg string + EncryptRandomKey string + MsgId string + PublickeyVer uint32 + Seq uint64 + type ChatDataResponse struct + ChatDataList []ChatData + func (c ChatDataResponse) IsError() bool + type ChatMessage struct + Action string + From string + Id string + ToList []string + Type string + func (c ChatMessage) GetAgreeMessage() (msg AgreeMessage) + func (c ChatMessage) GetCalendarMessage() (msg CalendarMessage) + func (c ChatMessage) GetCardMessage() (msg CardMessage) + func (c ChatMessage) GetChatRecordMessage() (msg ChatRecordMessage) + func (c ChatMessage) GetCollectMessage() (msg CollectMessage) + func (c ChatMessage) GetDocMessage() (msg DocMessage) + func (c ChatMessage) GetEmotionMessage() (msg EmotionMessage) + func (c ChatMessage) GetExternalRedPacketMessage() (msg ExternalRedPacketMessage) + func (c ChatMessage) GetFileMessage() (msg FileMessage) + func (c ChatMessage) GetImageMessage() (msg ImageMessage) + func (c ChatMessage) GetLinkMessage() (msg LinkMessage) + func (c ChatMessage) GetLocationMessage() (msg LocationMessage) + func (c ChatMessage) GetMarkdownMessage() (msg MarkdownMessage) + func (c ChatMessage) GetMeetingMessage() (msg MeetingMessage) + func (c ChatMessage) GetMeetingVoiceCallMessage() (msg MeetingVoiceCallMessage) + func (c ChatMessage) GetMixedMessage() (msg MixedMessage) + func (c ChatMessage) GetNewsMessage() (msg NewsMessage) + func (c ChatMessage) GetOriginMessage() (msg map[string]interface{}) + func (c ChatMessage) GetRedpacketMessage() (msg RedpacketMessage) + func (c ChatMessage) GetRevokeMessage() (msg RevokeMessage) + func (c ChatMessage) GetSphFeedMessage() (msg SphFeedMessage) + func (c ChatMessage) GetSwitchMessage() (msg SwitchMessage) + func (c ChatMessage) GetTextMessage() (msg TextMessage) + func (c ChatMessage) GetTodoMessage() (msg TodoMessage) + func (c ChatMessage) GetVideoMessage() (msg VideoMessage) + func (c ChatMessage) GetVoiceMessage() (msg VoiceMessage) + func (c ChatMessage) GetVoipDocShareMessage() (msg VoipDocShareMessage) + func (c ChatMessage) GetVoteMessage() (msg VoteMessage) + func (c ChatMessage) GetWeappMessage() (msg WeappMessage) + type ChatRecord struct + Content string + FromChatroom bool + MsgTime int64 + Type string + type ChatRecordMessage struct + ChatRecord struct{ ... } + type Client struct + func NewClient(corpId string, corpSecret string, rsaPrivateKey string) (*Client, error) + func (s *Client) DecryptData(encrypt_random_key string, encryptMsg string) (msg ChatMessage, err error) + func (s *Client) Free() + func (s *Client) GetChatData(seq uint64, limit uint64, proxy string, passwd string, timeout int) ([]ChatData, error) + func (s *Client) GetContentFromSlice(slice *C.struct_Slice_t) []byte + func (s *Client) GetMediaData(indexBuf string, sdkFileId string, proxy string, passwd string, timeout int) (*MediaData, error) + func (s *Client) GetRawChatData(seq uint64, limit uint64, proxy string, passwd string, timeout int) (ChatDataResponse, error) + type CollectDetails struct + Id uint64 + Ques string + Type string + type CollectMessage struct + Collect struct{ ... } + type DemoFileData struct + DemoOperator string + EndTime int64 + FileName string + StartTime int64 + type DocMessage struct + Doc struct{ ... } + type EmotionMessage struct + Emotion struct{ ... } + type Error struct + ErrCode int + ErrMsg string + func NewSDKErr(code int) Error + func (this Error) Error() string + type ExternalRedPacketMessage struct + RedPacket struct{ ... } + type FileMessage struct + File struct{ ... } + type ImageMessage struct + Image struct{ ... } + type LinkMessage struct + Link struct{ ... } + type LocationMessage struct + Location struct{ ... } + type MarkdownMessage struct + Info struct{ ... } + type MediaData struct + Data []byte + IsFinish bool + OutIndexBuf string + type MeetingMessage struct + Meeting struct{ ... } + type MeetingVoiceCall struct + DemoFileData []DemoFileData + EndTime int64 + SdkFileId string + ShareScreenData []ShareScreenData + type MeetingVoiceCallMessage struct + MeetingVoiceCall *MeetingVoiceCall + VoiceId string + type MixedMessage struct + Mixed struct{ ... } + type MixedMsg struct + Content string + Type string + type News struct + Desc string + PicUrl string + Title string + Url string + type NewsMessage struct + Info struct{ ... } + type RedpacketMessage struct + RedPacket struct{ ... } + type RevokeMessage struct + Revoke struct{ ... } + type ShareScreenData struct + EndTime int64 + Share string + StartTime int64 + type SphFeedMessage struct + SphFeed struct{ ... } + type SwitchMessage struct + Action string + MsgId string + Time int64 + User string + type TextMessage struct + Text struct{ ... } + type TodoMessage struct + Todo struct{ ... } + type VideoMessage struct + Video struct{ ... } + type VoiceMessage struct + Voice struct{ ... } + type VoipDocShare struct + FileName string + FileSize uint64 + Md5Sum string + SdkFileId string + type VoipDocShareMessage struct + VoipDocShare *VoipDocShare + VoipId string + type VoteMessage struct + VoteId string + VoteItem []string + VoteTitle string + VoteType uint32 + type WeappMessage struct + WeApp struct{ ... }