-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'MapHardlinksFor' filter config option
- Loading branch information
SweetMnM
committed
Nov 16, 2022
1 parent
d57e91e
commit 2cecd67
Showing
8 changed files
with
130 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package hardlinkfilemap | ||
|
||
import "github.com/l3uddz/tqm/config" | ||
|
||
type HardlinkFileMapI interface { | ||
AddByTorrent(torrent config.Torrent) | ||
RemoveByTorrent(torrent config.Torrent) | ||
NoInstances(torrent config.Torrent) bool | ||
IsTorrentUnique(torrent config.Torrent) bool | ||
HardlinkedOutsideClient(torrent config.Torrent) bool | ||
Length() int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package hardlinkfilemap | ||
|
||
import "github.com/l3uddz/tqm/config" | ||
|
||
type noopHardlinkFileMap struct { | ||
} | ||
|
||
func NewNoopHardlinkFileMap() *noopHardlinkFileMap { | ||
return &noopHardlinkFileMap{} | ||
} | ||
|
||
func (h *noopHardlinkFileMap) AddByTorrent(torrent config.Torrent) { | ||
} | ||
|
||
func (h *noopHardlinkFileMap) RemoveByTorrent(torrent config.Torrent) { | ||
} | ||
|
||
func (h *noopHardlinkFileMap) NoInstances(torrent config.Torrent) bool { | ||
return true | ||
} | ||
|
||
func (h *noopHardlinkFileMap) IsTorrentUnique(torrent config.Torrent) bool { | ||
return true | ||
} | ||
|
||
func (h *noopHardlinkFileMap) HardlinkedOutsideClient(torrent config.Torrent) bool { | ||
return false | ||
} | ||
|
||
func (h *noopHardlinkFileMap) Length() int { | ||
return 0 | ||
} |