dirwatch

package
Version: v0.0.0-...-fdaaeef Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2016 License: MPL-2.0, MIT Imports: 9 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        torrent.InfoHash
}

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 (me *Instance) Close()

Source Files

Jump to

Keyboard shortcuts

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