MCPcopy
hub / github.com/42wim/matterbridge / HandleDownloadData

Function HandleDownloadData

bridge/helper/helper.go:176–178  ·  view source on GitHub ↗

HandleDownloadData adds the data for a remote file into a Matterbridge gateway message.

(logger *logrus.Entry, msg *config.Message, name, comment, url string, data *[]byte, general *config.Protocol)

Source from the content-addressed store, hash-verified

174
175// HandleDownloadData adds the data for a remote file into a Matterbridge gateway message.
176func HandleDownloadData(logger *logrus.Entry, msg *config.Message, name, comment, url string, data *[]byte, general *config.Protocol) {
177 HandleDownloadData2(logger, msg, name, "", comment, url, data, general)
178}
179
180// HandleDownloadData adds the data for a remote file into a Matterbridge gateway message.
181func HandleDownloadData2(logger *logrus.Entry, msg *config.Message, name, id, comment, url string, data *[]byte, general *config.Protocol) {

Callers 15

handleDownloadAvatarMethod · 0.92
handleDownloadMethod · 0.92
downloadFilesMethod · 0.92
handleImageMessageMethod · 0.92
handleVideoMessageMethod · 0.92
handleAudioMessageMethod · 0.92
handleDocumentMessageMethod · 0.92
handleDownloadAvatarMethod · 0.92
handleDownloadFileMethod · 0.92
HandleImageMessageMethod · 0.92
HandleVideoMessageMethod · 0.92
HandleAudioMessageMethod · 0.92

Calls 1

HandleDownloadData2Function · 0.85

Tested by

no test coverage detected