Documentation
¶
Overview ¶
Package metav2 implements the functions, types, and interfaces for the module.
Index ¶
Constants ¶
View Source
const Version = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMetaV2 ¶
type FileMetaV2 struct {
Version int32 `msgpack:"v"` // Schema version, e.g., 1
Name string `msgpack:"n"` // File name
Hash string `msgpack:"h"` // Content hash
Size int64 `msgpack:"s"` // File size
MimeType string `msgpack:"m"` // MIME type
ModTime int64 `msgpack:"t"` // Modify time
// if version > 1, then we have the following fields:
BlockSize int32 `msgpack:"bs"` // New field
BlockHashes []string `msgpack:"bh"` // New field
Extra map[string]string `msgpack:"e"` // extra data
}
func (FileMetaV2) CurrentVersion ¶
func (f FileMetaV2) CurrentVersion() int32
Click to show internal directories.
Click to hide internal directories.