Discover Packages
github.com/go-packagist/youdu
session
package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Apr 7, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
MsgTypeText = "text"
MsgTypeImage = "image"
MsgTypeVoice = "voice"
MsgTypeVideo = "video"
)
type FileMessage struct {
SessionId string `json:"sessionId,omitempty"`
Receiver string `json:"receiver,omitempty"`
Sender string `json:"sender"`
MsgType string `json:"msgType"`
File *MediaItem `json:"file"`
}
type ImageMessage struct {
SessionId string `json:"sessionId,omitempty"`
Receiver string `json:"receiver,omitempty"`
Sender string `json:"sender"`
MsgType string `json:"msgType"`
Image *MediaItem `json:"image"`
}
type MediaItem struct {
MediaId string `json:"media_id"`
}
type Message interface {
}
type Session struct {
SessionId string `json:"sessionId"`
Type string `json:"type"`
Owner string `json:"owner"`
Title string `json:"title"`
Version int `json:"version"`
Member []string `json:"member"`
LastMsgId int `json:"lastMsgId"`
ActiveTime int `json:"activeTime"`
}
type TextItem struct {
Content string `json:"content"`
}
type TextMessage struct {
SessionId string `json:"sessionId,omitempty"`
Receiver string `json:"receiver,omitempty"`
Sender string `json:"sender"`
MsgType string `json:"msgType"`
Text *TextItem `json:"text"`
}
type VideoMessage struct {
SessionId string `json:"sessionId,omitempty"`
Receiver string `json:"receiver,omitempty"`
Sender string `json:"sender"`
MsgType string `json:"msgType"`
Video *MediaItem `json:"video"`
}
type VoiceMessage struct {
SessionId string `json:"sessionId,omitempty"`
Receiver string `json:"receiver,omitempty"`
Sender string `json:"sender"`
MsgType string `json:"msgType"`
Voice *MediaItem `json:"voice"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.