dirwatch

package
v0.0.0-...-0cf3de4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2016 License: MPL-2.0, MIT 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 (me *Instance) Close()

Jump to

Keyboard shortcuts

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