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()

    Source Files