github.com/0chain/gosdk@v1.17.11/zboxcore/sdk/upload_helper.go (about) 1 package sdk 2 3 type UploadFileMeta struct { 4 // Name remote file name 5 Name string 6 // Path remote path 7 Path string 8 // Hash hash of entire source file 9 Hash string 10 MimeType string 11 // Size total bytes of entire source file 12 Size int64 13 14 // ThumbnailSize total bytes of entire thumbnail 15 ThumbnailSize int64 16 // ThumbnailHash hash code of entire thumbnail 17 ThumbnailHash string 18 } 19 20 type UploadResult struct { 21 Filename string `json:"filename"` 22 ShardSize int64 `json:"size"` 23 Hash string `json:"content_hash,omitempty"` 24 MerkleRoot string `json:"merkle_root,omitempty"` 25 }