index

package
v0.0.0-...-0607a2e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLOCK_SIZE int64 = 1 << 20
)

Variables

This section is empty.

Functions

func InitIndex

func InitIndex(monitored string, db *sql.DB) error

func LikeSafe

func LikeSafe(path string) string

func PathSafe

func PathSafe(path string) string

func ProcessDirChange

func ProcessDirChange(thePath string, info os.FileInfo, monitored string)

func ProcessEvent

func ProcessEvent(watcher *fsnotify.Watcher, monitored string)

func ProcessFileChange

func ProcessFileChange(thePath string, info os.FileInfo, monitored string)

func ProcessFileDelete

func ProcessFileDelete(thePath string, monitored string)

func SlashSuffix

func SlashSuffix(path string) string

func WatchRecursively

func WatchRecursively(watcher *fsnotify.Watcher, root string, monitored string) error

Types

type IndexedFile

type IndexedFile struct {
	FilePath     string
	LastModified int64
	FileSize     int64
	FileMode     os.FileMode
	Status       string
	LastIndexed  int64
}

type IndexedFilePart

type IndexedFilePart struct {
	FilePath     string
	Seq          int
	StartIndex   int64
	Offset       int
	Checksum     string
	ChecksumType string
}

Jump to

Keyboard shortcuts

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