Versions in this module Expand all Collapse all v0 v0.0.0 Jan 3, 2026 Changes in this version + type ImageCache struct + func NewImageCache() (*ImageCache, error) + func (ic *ImageCache) Close() error + func (ic *ImageCache) GetAvatarFilePath(jid string) (string, error) + func (ic *ImageCache) GetImageByMessageID(messageID string) (*ImageMeta, error) + func (ic *ImageCache) GetImageFilePath(messageID string) (string, error) + func (ic *ImageCache) GetImagesByMessageIDs(messageIDs []string) (map[string]*ImageMeta, error) + func (ic *ImageCache) ReadAvatarByJID(jid string) ([]byte, string, error) + func (ic *ImageCache) ReadImageByMessageID(messageID string) ([]byte, string, error) + func (ic *ImageCache) SaveAvatar(jid string, data []byte, mime string) (string, error) + func (ic *ImageCache) SaveImage(messageID string, data []byte, mime string, width, height int) (string, error) + type ImageMeta struct + CreatedAt int64 + Height int + MessageID string + Mime string + SHA256 string + Width int