Documentation ¶
Index ¶
- Constants
- func Init() time.Time
- func LoadIndex()
- func MatchDirectories()
- func MatchFiles()
- func MatchUnits()
- func PrepareUpoad()
- func Shutdown()
- type IdxDirDiff
- type IdxDirectory
- type IdxFile
- type IdxFileDiff
- type KFile
- type MDBFileDiff
- type MFile
- type MasterFile
- type MatchAnalysis
- type MiniKFile
- type MiniKMFile
- type RFile
- type RozaIndex
- type UnitAnalysis
- type UnitDiff
- type UploadFile
Constants ¶
View Source
const ( EMPTY = "empty" ROZA_ONLY = "rozaOnly" ROZA_KM_ONLY = "rozaKmOnly" ROZA_MDB_ONLY = "rozaMdbOnly" PERFECT_STRIKE = "perfectStrike" PERFECT_STRIKE_MDB_HAS_MORE = "perfectStrikeMdbHasMore" ALL_IN_NO_UNIT = "allInNoUnit" ALL_IN_MISSING_UNIT = "allInMissingUnit" ALL_IN_TOO_MANY_UNITS = "allInTooManyUnits" MIXED = "mixed" MDB_ONLY = "mdbOnly" ALL_IN_TOO_MANY_FOLDERS = "allInTooManyFolders" )
Variables ¶
This section is empty.
Functions ¶
func MatchDirectories ¶
func MatchDirectories()
func MatchFiles ¶
func MatchFiles()
func MatchUnits ¶
func MatchUnits()
func PrepareUpoad ¶
func PrepareUpoad()
Types ¶
type IdxDirDiff ¶
type IdxDirDiff struct { Path string `json:"path"` Files []*IdxFileDiff `json:"files,omitempty"` ExtraFiles []*IdxFileDiff `json:"extraFiles,omitempty"` // contains filtered or unexported fields }
type IdxDirectory ¶
type IdxDirectory struct { Name string Parent *IdxDirectory Children *treemap.Map Files []*IdxFile }
func NewIdxDirectory ¶
func NewIdxDirectory(name string, parent *IdxDirectory) *IdxDirectory
type IdxFile ¶
type IdxFile struct { Name string SHA1 string Size int64 LastModified time.Time Directory *IdxDirectory }
func (*IdxFile) MarshalJSON ¶
type IdxFileDiff ¶
type KFile ¶
type KFile struct { Copies []*MiniKFile `json:"c,omitempty"` // contains filtered or unexported fields }
type MDBFileDiff ¶
type MasterFile ¶
type MatchAnalysis ¶
type MatchAnalysis map[string][]*IdxDirDiff
type MiniKMFile ¶
type RFile ¶
type RFile struct { Copies []*IdxFile `json:"c,omitempty"` // contains filtered or unexported fields }
type RozaIndex ¶
type RozaIndex struct { Roots map[string]*IdxDirectory FileCount int }
func (*RozaIndex) GetDir ¶
func (idx *RozaIndex) GetDir(path string) *IdxDirectory
type UnitAnalysis ¶
type UnitDiff ¶
type UnitDiff struct { CUID int64 `json:"cuID"` Files []*MDBFileDiff `json:"files"` // contains filtered or unexported fields }
type UploadFile ¶
Click to show internal directories.
Click to hide internal directories.