MCPcopy
hub / github.com/EverythingSuckz/TG-FileStreamBot / PackFile

Function PackFile

internal/utils/hashing.go:8–10  ·  view source on GitHub ↗
(fileName string, fileSize int64, mimeType string, fileID int64)

Source from the content-addressed store, hash-verified

6)
7
8func PackFile(fileName string, fileSize int64, mimeType string, fileID int64) string {
9 return (&types.HashableFileStruct{FileName: fileName, FileSize: fileSize, MimeType: mimeType, FileID: fileID}).Pack()
10}
11
12func GetShortHash(fullHash string) string {
13 return fullHash[:config.ValueOf.HashLength]

Callers 2

sendLinkFunction · 0.92
getStreamRouteFunction · 0.92

Calls 1

PackMethod · 0.80

Tested by

no test coverage detected