Documentation ¶
Index ¶
- type AtInfo
- type AttachedInfoElem
- type CmdJoinedSuperGroup
- type CmdMaxSeqToMsgSync
- type CmdNewMsgComeToConversation
- type CmdPushMsgToMsgSync
- type FileBaseInfo
- type GroupHasReadInfo
- type IMConfig
- type ImageInfo
- type MessageEntity
- type MessageReceipt
- type MessageRevoked
- type MsgDeleteNotificationElem
- type MsgStruct
- type NewMsgList
- type OANotificationElem
- type PictureBaseInfo
- type SoundBaseInfo
- type VideoBaseInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachedInfoElem ¶
type AttachedInfoElem struct { GroupHasReadInfo GroupHasReadInfo `json:"groupHasReadInfo,omitempty"` IsPrivateChat bool `json:"isPrivateChat"` HasReadTime int64 `json:"hasReadTime"` NotSenderNotificationPush bool `json:"notSenderNotificationPush"` MessageEntityList []*MessageEntity `json:"messageEntityList,omitempty"` IsEncryption bool `json:"isEncryption"` InEncryptStatus bool `json:"inEncryptStatus"` }
type CmdJoinedSuperGroup ¶
type CmdJoinedSuperGroup struct {
OperationID string
}
type CmdMaxSeqToMsgSync ¶
type CmdMaxSeqToMsgSync struct { MaxSeqOnSvr uint32 OperationID string MinSeqOnSvr uint32 GroupID2MinMaxSeqOnSvr map[string]*server_api_params.MaxAndMinSeq }
type CmdPushMsgToMsgSync ¶
type CmdPushMsgToMsgSync struct { Msg *server_api_params.MsgData OperationID string }
type FileBaseInfo ¶
type GroupHasReadInfo ¶
type IMConfig ¶
type IMConfig struct { Platform int32 `json:"platform"` ApiAddr string `json:"api_addr"` WsAddr string `json:"ws_addr"` DataDir string `json:"data_dir"` LogLevel uint32 `json:"log_level"` ObjectStorage string `json:"object_storage"` //"cos"(default) "oss" EncryptionKey string `json:"encryption_key"` }
var SvrConf IMConfig
type MessageEntity ¶
type MessageReceipt ¶
type MessageRevoked ¶
type MessageRevoked struct { RevokerID string `json:"revokerID"` RevokerRole int32 `json:"revokerRole"` ClientMsgID string `json:"clientMsgID"` RevokerNickname string `json:"revokerNickname"` RevokeTime int64 `json:"revokeTime"` SourceMessageSendTime int64 `json:"sourceMessageSendTime"` SourceMessageSendID string `json:"sourceMessageSendID"` SourceMessageSenderNickname string `json:"sourceMessageSenderNickname"` SessionType int32 `json:"sessionType"` Seq uint32 `json:"seq"` }
type MsgStruct ¶
type MsgStruct struct { ClientMsgID string `json:"clientMsgID,omitempty"` ServerMsgID string `json:"serverMsgID,omitempty"` CreateTime int64 `json:"createTime"` SendTime int64 `json:"sendTime"` SessionType int32 `json:"sessionType"` SendID string `json:"sendID,omitempty"` RecvID string `json:"recvID,omitempty"` MsgFrom int32 `json:"msgFrom"` ContentType int32 `json:"contentType"` SenderPlatformID int32 `json:"platformID"` SenderNickname string `json:"senderNickname,omitempty"` SenderFaceURL string `json:"senderFaceUrl,omitempty"` GroupID string `json:"groupID,omitempty"` Content string `json:"content,omitempty"` Seq uint32 `json:"seq"` IsRead bool `json:"isRead"` Status int32 `json:"status"` OfflinePush server_api_params.OfflinePushInfo `json:"offlinePush,omitempty"` AttachedInfo string `json:"attachedInfo,omitempty"` Ex string `json:"ex,omitempty"` PictureElem struct { SourcePath string `json:"sourcePath,omitempty"` SourcePicture PictureBaseInfo `json:"sourcePicture,omitempty"` BigPicture PictureBaseInfo `json:"bigPicture,omitempty"` SnapshotPicture PictureBaseInfo `json:"snapshotPicture,omitempty"` } `json:"pictureElem,omitempty"` SoundElem struct { UUID string `json:"uuid,omitempty"` SoundPath string `json:"soundPath,omitempty"` SourceURL string `json:"sourceUrl,omitempty"` DataSize int64 `json:"dataSize"` Duration int64 `json:"duration"` } `json:"soundElem,omitempty"` VideoElem struct { VideoPath string `json:"videoPath,omitempty"` VideoUUID string `json:"videoUUID,omitempty"` VideoURL string `json:"videoUrl,omitempty"` VideoType string `json:"videoType,omitempty"` VideoSize int64 `json:"videoSize"` Duration int64 `json:"duration"` SnapshotPath string `json:"snapshotPath,omitempty"` SnapshotUUID string `json:"snapshotUUID,omitempty"` SnapshotSize int64 `json:"snapshotSize"` SnapshotURL string `json:"snapshotUrl,omitempty"` SnapshotWidth int32 `json:"snapshotWidth"` SnapshotHeight int32 `json:"snapshotHeight"` } `json:"videoElem,omitempty"` FileElem struct { FilePath string `json:"filePath,omitempty"` UUID string `json:"uuid,omitempty"` SourceURL string `json:"sourceUrl,omitempty"` FileName string `json:"fileName,omitempty"` FileSize int64 `json:"fileSize"` } `json:"fileElem,omitempty"` MergeElem struct { Title string `json:"title,omitempty"` AbstractList []string `json:"abstractList,omitempty"` MultiMessage []*MsgStruct `json:"multiMessage,omitempty"` MessageEntityList []*MessageEntity `json:"messageEntityList,omitempty"` } `json:"mergeElem,omitempty"` AtElem struct { Text string `json:"text,omitempty"` AtUserList []string `json:"atUserList,omitempty"` AtUsersInfo []*AtInfo `json:"atUsersInfo,omitempty"` QuoteMessage *MsgStruct `json:"quoteMessage,omitempty"` IsAtSelf bool `json:"isAtSelf"` } `json:"atElem,omitempty"` FaceElem struct { Index int `json:"index"` Data string `json:"data,omitempty"` } `json:"faceElem,omitempty"` LocationElem struct { Description string `json:"description,omitempty"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` } `json:"locationElem,omitempty"` CustomElem struct { Data string `json:"data,omitempty"` Description string `json:"description,omitempty"` Extension string `json:"extension,omitempty"` } `json:"customElem,omitempty"` QuoteElem struct { Text string `json:"text,omitempty"` QuoteMessage *MsgStruct `json:"quoteMessage,omitempty"` MessageEntityList []*MessageEntity `json:"messageEntityList,omitempty"` } `json:"quoteElem,omitempty"` NotificationElem struct { Detail string `json:"detail,omitempty"` DefaultTips string `json:"defaultTips,omitempty"` } `json:"notificationElem,omitempty"` MessageEntityElem struct { Text string `json:"text,omitempty"` MessageEntityList []*MessageEntity `json:"messageEntityList,omitempty"` } `json:"messageEntityElem,omitempty"` AttachedInfoElem AttachedInfoElem `json:"attachedInfoElem,omitempty"` }
type NewMsgList ¶
type NewMsgList []*MsgStruct
func (NewMsgList) Len ¶
func (n NewMsgList) Len() int
Implement the sort.Interface interface to get the number of elements method
func (NewMsgList) Less ¶
func (n NewMsgList) Less(i, j int) bool
Implement the sort.Interface interface comparison element method
func (NewMsgList) Swap ¶
func (n NewMsgList) Swap(i, j int)
Implement the sort.Interface interface exchange element method
type OANotificationElem ¶
type OANotificationElem struct { NotificationName string `mapstructure:"notificationName" validate:"required"` NotificationFaceURL string `mapstructure:"notificationFaceURL" validate:"required"` NotificationType int32 `mapstructure:"notificationType" validate:"required"` Text string `mapstructure:"text" validate:"required"` Url string `mapstructure:"url"` MixType int32 `mapstructure:"mixType"` Image struct { SourceUrl string `mapstructure:"sourceURL"` SnapshotUrl string `mapstructure:"snapshotURL"` } `mapstructure:"image"` Video struct { SourceUrl string `mapstructure:"sourceURL"` SnapshotUrl string `mapstructure:"snapshotURL"` Duration int64 `mapstructure:"duration"` } `mapstructure:"video"` File struct { SourceUrl string `mapstructure:"sourceURL"` FileName string `mapstructure:"fileName"` FileSize int64 `mapstructure:"fileSize"` } `mapstructure:"file"` Ex string `mapstructure:"ex"` }
type PictureBaseInfo ¶
type SoundBaseInfo ¶
type VideoBaseInfo ¶
type VideoBaseInfo struct { VideoPath string `json:"videoPath,omitempty"` VideoUUID string `json:"videoUUID,omitempty"` VideoURL string `json:"videoUrl,omitempty"` VideoType string `json:"videoType,omitempty"` VideoSize int64 `json:"videoSize"` Duration int64 `json:"duration"` SnapshotPath string `json:"snapshotPath,omitempty"` SnapshotUUID string `json:"snapshotUUID,omitempty"` SnapshotSize int64 `json:"snapshotSize"` SnapshotURL string `json:"snapshotUrl,omitempty"` SnapshotWidth int32 `json:"snapshotWidth"` SnapshotHeight int32 `json:"snapshotHeight"` }
Click to show internal directories.
Click to hide internal directories.