dirwatch

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 8 Imported by: 225

Documentation

Overview

Package dirwatch provides filesystem-notification based tracking of torrent info files and magnet URIs in a directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change uint
const (
	Added Change = iota
	Removed
)

type Event

type Event struct {
	MagnetURI string
	Change
	TorrentFilePath string
	InfoHash        metainfo.Hash
}

type Instance

type Instance struct {
	Events chan Event

	Logger log.Logger
	// contains filtered or unexported fields
}

func New

func New(dirName string) (i *Instance, err error)

func (*Instance) Close

func (i *Instance) Close()

Jump to

Keyboard shortcuts

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