directory

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2025 License: BSD-2-Clause Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL