Versions in this module Expand all Collapse all v1 v1.0.1 Apr 26, 2020 v1.0.0 Mar 28, 2020 Changes in this version + const DEFAULTTIMEOUT + const NUMTIMEOUT + const RONGCLOUDSMSURI + const RONGCLOUDURI + const RONGCLOUDURI2 + const ReqType + const USERAGENT + func RCErrorNew(code int, text string) error + func WithNumTimeout(n uint) rongCloudOption + func WithRongCloudSMSURI(rongCloudSMSURI string) rongCloudOption + func WithRongCloudURI(rongCloudURI string) rongCloudOption + func WithTimeout(t time.Duration) rongCloudOption + type AndroidPush struct + Alert string + Extras Extras + type Audience struct + IsToAll bool + PackageName string + Tag []string + TagOr []string + UserID []string + type BlacklistResult struct + Users []string + type BlockListResult struct + Users []User + type Broadcast struct + Audience Audience + FromUserID string + Message Message + Notification Notification + PlatForm []PlatForm + type BroadcastRecallContent struct + ConversationType int + IsAdmin int + IsDelete int + MessageId string + func (content *BroadcastRecallContent) ToString() (string, error) + type CMDMsg struct + Data string + Name string + User MsgUserInfo + func (msg *CMDMsg) ToString() (string, error) + type CMDNtf struct + Data string + Name string + User MsgUserInfo + func (msg *CMDNtf) ToString() (string, error) + type ChatRoom struct + ChatRoomID string + Name string + Time string + type ChatRoomInfo struct + ID string + Name string + type ChatRoomResult struct + ChatRoomIDs []string + ObjectNames []string + Result []ChatRoomUser + Total int + Users []ChatRoomUser + WhitelistMsgType []string + type ChatRoomUser struct + ID string + IsInChrm int + Time string + UserID string + type CodeResult struct + Code int + ErrorMessage string + func (e CodeResult) Error() string + func (e CodeResult) ErrorCode() int + type ContactNtf struct + Extra string + Message string + Operation string + SourceUserID string + TargetUserID string + User MsgUserInfo + func (msg *ContactNtf) ToString() (string, error) + type ConversationType int + const CUSTOMERSERVICE + const DISCUSSION + const GROUP + const PRIVATE + const SYSTEM + type DizNtf struct + Extension string + Operation string + Type int + User MsgUserInfo + func (msg *DizNtf) ToString() (string, error) + type Extras interface + ToJSON func() ([]byte, error) + type FileMsg struct + FileURL string + Name string + Size string + Type string + User MsgUserInfo + func (msg *FileMsg) ToString() (string, error) + type Group struct + ID string + Name string + Stat string + Users []GroupUser + type GroupInfo struct + GroupInfo []Group + type GroupUser struct + ID string + Time string + UserID string + type GrpNtf struct + Data string + Extra string + Message string + Operation string + OperatorUserID string + User MsgUserInfo + func (msg *GrpNtf) ToString() (string, error) + type History struct + URL string + type IMGTextMsg struct + Content string + Duration string + Extra string + Title string + URL string + User MsgUserInfo + func (msg *IMGTextMsg) ToString() (string, error) + type IOSPush struct + Alert string + Badge int + Category string + ContentAvailable int + Extras Extras + RichMediaURI string + Title string + type ImgMsg struct + Content string + Extra string + ImageURI string + User MsgUserInfo + func (msg *ImgMsg) ToString() (string, error) + type InfoNtf struct + Extra string + Message string + User MsgUserInfo + func (msg *InfoNtf) ToString() (string, error) + type LBSMsg struct + Content string + Extra string + Latitude float64 + Longitude float64 + POI string + User MsgUserInfo + func (msg *LBSMsg) ToString() (string, error) + type ListWordFilterResult struct + Words []SensitiveWord + type MentionMsgContent struct + Content string + MentionedInfo MentionedInfo + type MentionedInfo struct + PushContent string + Type int + UserIDs []string + type Message struct + Content string + ObjectName string + type MsgUserInfo struct + Extra string + ID string + Icon string + Name string + type Notification struct + Alert string + Android AndroidPush + IOS IOSPush + type PlatForm string + const AndroidPlatForm + const IOSPlatForm + type ProfileNtf struct + Data string + Extra string + Operation string + User MsgUserInfo + func (msg *ProfileNtf) ToString() (string, error) + type Push struct + Audience Audience + Notification Notification + PlatForm []PlatForm + type PushResult struct + ID string + type RongCloud struct + func GetRongCloud() *RongCloud + func NewRongCloud(appKey, appSecret string, options ...rongCloudOption) *RongCloud + func (rc *RongCloud) AddWhiteList(userId string, whiteList []string) error + func (rc *RongCloud) BlacklistAdd(id string, blacklist []string) error + func (rc *RongCloud) BlacklistGet(id string) (BlacklistResult, error) + func (rc *RongCloud) BlacklistRemove(id string, blacklist []string) error + func (rc *RongCloud) BlockAdd(id string, minute uint64) error + func (rc *RongCloud) BlockGetList() (BlockListResult, error) + func (rc *RongCloud) BlockRemove(id string) error + func (rc *RongCloud) ChatRoomBanAdd(members []string, minute uint) error + func (rc *RongCloud) ChatRoomBanGetList() ([]ChatRoomUser, error) + func (rc *RongCloud) ChatRoomBanRemove(members []string) error + func (rc *RongCloud) ChatRoomBlockAdd(id string, members []string, minute uint) error + func (rc *RongCloud) ChatRoomBlockGetList(id string) (ChatRoomResult, error) + func (rc *RongCloud) ChatRoomBlockRemove(id string, members []string) error + func (rc *RongCloud) ChatRoomBroadcast(senderID, objectName string, msg rcMsg) error + func (rc *RongCloud) ChatRoomCreate(id, name string) error + func (rc *RongCloud) ChatRoomDemotionAdd(objectNames []string) error + func (rc *RongCloud) ChatRoomDemotionGetList() ([]string, error) + func (rc *RongCloud) ChatRoomDemotionRemove(objectNames []string) error + func (rc *RongCloud) ChatRoomDestroy(id string) error + func (rc *RongCloud) ChatRoomDistributionResume(id string) error + func (rc *RongCloud) ChatRoomDistributionStop(id string) error + func (rc *RongCloud) ChatRoomGagAdd(id string, members []string, minute uint) error + func (rc *RongCloud) ChatRoomGagGetList(id string) ([]ChatRoomUser, error) + func (rc *RongCloud) ChatRoomGagRemove(id string, members []string) error + func (rc *RongCloud) ChatRoomGet(id string, count, order int) (ChatRoomResult, error) + func (rc *RongCloud) ChatRoomIsExist(id string, members []string) ([]ChatRoomUser, error) + func (rc *RongCloud) ChatRoomKeepAliveAdd(id string) error + func (rc *RongCloud) ChatRoomKeepAliveGetList() ([]string, error) + func (rc *RongCloud) ChatRoomKeepAliveRemove(id string) error + func (rc *RongCloud) ChatRoomMuteMembersAdd(id string, members []string, minute uint) error + func (rc *RongCloud) ChatRoomMuteMembersGetList(id string) ([]ChatRoomUser, error) + func (rc *RongCloud) ChatRoomMuteMembersRemove(id string, members []string) error + func (rc *RongCloud) ChatRoomRecall(userId string, targetId string, messageId string, sentTime int) error + func (rc *RongCloud) ChatRoomSend(senderID string, targetID []string, objectName string, msg rcMsg) error + func (rc *RongCloud) ChatRoomUserWhitelistAdd(id string, members []string) error + func (rc *RongCloud) ChatRoomUserWhitelistGetList(id string) ([]string, error) + func (rc *RongCloud) ChatRoomUserWhitelistRemove(id string, members []string) error + func (rc *RongCloud) ChatRoomWhitelistAdd(objectNames []string) error + func (rc *RongCloud) ChatRoomWhitelistGetList() ([]string, error) + func (rc *RongCloud) ChatRoomWhitelistRemove(objectNames []string) error + func (rc *RongCloud) ConversationGet(conversationType ConversationType, userID, targetID string) (int, error) + func (rc *RongCloud) ConversationMute(conversationType ConversationType, userID, targetID string) error + func (rc *RongCloud) ConversationUnmute(conversationType ConversationType, userID, targetID string) error + func (rc *RongCloud) GroupCreate(id, name string, members []string) error + func (rc *RongCloud) GroupDismiss(id, member string) error + func (rc *RongCloud) GroupGagAdd(id string, members []string, minute int) error + func (rc *RongCloud) GroupGagList(id string) (Group, error) + func (rc *RongCloud) GroupGagRemove(id string, members []string) error + func (rc *RongCloud) GroupGet(id string) (Group, error) + func (rc *RongCloud) GroupJoin(id, name, member string) error + func (rc *RongCloud) GroupMuteAllMembersAdd(members []string) error + func (rc *RongCloud) GroupMuteAllMembersGetList(members []string) (GroupInfo, error) + func (rc *RongCloud) GroupMuteAllMembersRemove(members []string) error + func (rc *RongCloud) GroupMuteMembersAdd(id string, members []string, minute int) error + func (rc *RongCloud) GroupMuteMembersGetList(id string) (Group, error) + func (rc *RongCloud) GroupMuteMembersRemove(id string, members []string) error + func (rc *RongCloud) GroupMuteWhiteListUserAdd(id string, members []string) error + func (rc *RongCloud) GroupMuteWhiteListUserGetList(id string) ([]string, error) + func (rc *RongCloud) GroupMuteWhiteListUserRemove(id string, members []string) error + func (rc *RongCloud) GroupQuit(member, id string) error + func (rc *RongCloud) GroupRecall(senderID, targetID, uID string, sentTime int) error + func (rc *RongCloud) GroupSend(senderID string, targetID, userID []string, objectName string, msg rcMsg, ...) error + func (rc *RongCloud) GroupSendMention(senderID string, targetID []string, objectName string, msg MentionMsgContent, ...) error + func (rc *RongCloud) GroupSync(id string, groups []Group) error + func (rc *RongCloud) GroupUpdate(id, name string) error + func (rc *RongCloud) HistoryGet(date string) (History, error) + func (rc *RongCloud) HistoryRemove(date string) error + func (rc *RongCloud) MessageBroadcastRecall(userId string, objectName string, content BroadcastRecallContent) error + func (rc *RongCloud) OnlineStatusCheck(userID string) (int, error) + func (rc *RongCloud) PrivateRecall(senderID, targetID, uID string, sentTime int) error + func (rc *RongCloud) PrivateSend(senderID string, targetID []string, objectName string, msg rcMsg, ...) error + func (rc *RongCloud) PrivateSendTemplate(senderID, objectName string, template TXTMsg, content []TemplateMsgContent) error + func (rc *RongCloud) PrivateURI(uri, sms string) + func (rc *RongCloud) PushSend(sender Sender) (PushResult, error) + func (rc *RongCloud) QueryWhiteList(userId string) (WhiteList, error) + func (rc *RongCloud) RemoveWhiteList(userId string, whiteList []string) error + func (rc *RongCloud) SensitiveAdd(keyword, replace string, sensitiveType int) error + func (rc *RongCloud) SensitiveGetList() (ListWordFilterResult, error) + func (rc *RongCloud) SensitiveRemove(keywords []string) error + func (rc *RongCloud) SystemBroadcast(senderID, objectName string, msg rcMsg) error + func (rc *RongCloud) SystemSend(senderID string, targetID []string, objectName string, msg rcMsg, ...) error + func (rc *RongCloud) SystemSendTemplate(senderID, objectName string, template TXTMsg, content []TemplateMsgContent) error + func (rc *RongCloud) TagBatchSet(tagBatch TagBatch) error + func (rc *RongCloud) TagGet(userIds []string) (TagResult, error) + func (rc *RongCloud) TagSet(tag Tag) error + func (rc *RongCloud) UserRegister(userID, name, portraitURI string) (User, error) + func (rc *RongCloud) UserUpdate(userID, name, portraitURI string) error + type Sender interface + type SensitiveWord struct + ReplaceWord string + Type string + Word string + type TXTMsg struct + Content string + Extra string + User MsgUserInfo + func (msg *TXTMsg) ToString() (string, error) + type Tag struct + Tags []string + UserID string + type TagBatch struct + Tags []string + UserIDs []string + type TagResult struct + Result map[string][]string + type TemplateMsgContent struct + Data map[string]string + PushContent string + TargetID string + type User struct + BlockEndTime string + Status string + Token string + UserID string + type VCMsg struct + Content string + Duration string + Extra string + User MsgUserInfo + func (msg *VCMsg) ToString() (string, error) + type WhiteList struct + Users []string