dirwatch

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

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
	// 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