Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStatus ¶
type CacheStatus struct {
IsRunning bool `json:"isRunning"`
Total int `json:"total"`
Processed int `json:"processed"`
Scope string `json:"scope"`
}
CacheStatus 缓存任务进度
type PreparedMedia ¶
PreparedMedia 保存媒体文件的最终内容和内容类型。
type Service ¶
type Service struct {
DataDir string
ImageKey string
XorKey string
WechatDbSrcPath string
// contains filtered or unexported fields
}
Service 处理准备用于服务的媒体文件的业务逻辑。
func NewService ¶
NewService 创建一个新的媒体服务。
func (*Service) DownloadAndDecryptEmoji ¶
func (s *Service) DownloadAndDecryptEmoji(url string, keyHex string) PreparedMedia
DownloadAndDecryptEmoji 下载并解密表情包
func (*Service) GetCacheStatus ¶
func (s *Service) GetCacheStatus() CacheStatus
Click to show internal directories.
Click to hide internal directories.