Documentation
¶
Overview ¶
Package directory implements container which checks if hash present in any of torrent file placed in some directory. Note: Unlike List, this container also stores torrent name as value
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BencodeRawBytes ¶ added in v0.1.0
type BencodeRawBytes []byte
BencodeRawBytes wrapper for byte slice to get raw 'info' section from torrent file
func (*BencodeRawBytes) UnmarshalBencode ¶ added in v0.1.0
func (ba *BencodeRawBytes) UnmarshalBencode(in []byte) error
UnmarshalBencode just appends raw byte slice to result
type Config ¶
type Config struct { list.Config // Path in filesystem where torrent files stored and should be watched Path string // Period is time between two Path checks Period time.Duration }
Config - implementation of directory container configuration. Extends list.Config because uses the same storage and Approved function.
Click to show internal directories.
Click to hide internal directories.