importer

package
v0.0.0-...-3ee377d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Importer

type Importer struct {
	InputDir    string      // pdf input directory
	Processor   chan string // process chan
	Wait        int         // how long should the loop sleep until the next input read starts
	UseImporter bool
}

Importer struct

func New

func New(cfg config.ImportConfig) Importer

New returns a new instance of the automatic import bot dir is the input directory where the importer searches for new pdf files

func (Importer) Name

func (i Importer) Name() string

Name returns the name, to satisfy the service interface

func (Importer) Run

func (i Importer) Run()

Run scans for new files and sends them on a channel to the processor

Jump to

Keyboard shortcuts

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