Documentation ¶
Overview ¶
Package scan2drive contains domain types for scan2drive, like scan sources or scan requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanRequest ¶
type ScanRequest struct { User string `json:"user"` Source string `json:"source"` SourceId string `json:"source_id"` }
A ScanRequest is received via MQTT, HTTP or gRPC.
type ScanSource ¶
type ScanSource interface { Metadata() ScanSourceMetadata // CanProcess returns nil if this source can process the specified scan // request, or an error describing what prevents the source from // processing. CanProcess(*ScanRequest) error // the ingester selects the user by virtue of selecting the user’s job // queue in the ingestcallback. // returns the job id ScanTo(*scaningest.Ingester) (string, error) }
A ScanSource is a specific device, e.g. a Brother printer/scanner that was discovered via AirScan.
type ScanSourceFinder ¶
type ScanSourceFinder interface {
CurrentScanSources() []ScanSource
}
type ScanSourceMetadata ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
scan2drive
Program scan2drive scans your physical documents as PDF files to Google Drive, where you can full-text search them.
|
Program scan2drive scans your physical documents as PDF files to Google Drive, where you can full-text search them. |
internal
|
|
fss500
Package fss500 is a driver for the Fujitsu ScanSnap iX500 document scanner, implemented from scratch based on USB traffic captures.
|
Package fss500 is a driver for the Fujitsu ScanSnap iX500 document scanner, implemented from scratch based on USB traffic captures. |
fss500/usb
Package usb is a minimal, device-specific library which uses Linux’s usbdevfs and /sys interfaces to communicate with a Fujitsu ScanSnap iX500 via USB.
|
Package usb is a minimal, device-specific library which uses Linux’s usbdevfs and /sys interfaces to communicate with a Fujitsu ScanSnap iX500 via USB. |
g3
Package g3 implements data encoding using the CCITT (renamed to ITU-T in 1993) fax standard in its Group 3, One-Dimensional (G31D) variant.
|
Package g3 implements data encoding using the CCITT (renamed to ITU-T in 1993) fax standard in its Group 3, One-Dimensional (G31D) variant. |
httperr
Package httperr implements middleware which serves returned errors as HTTP internal server errors.
|
Package httperr implements middleware which serves returned errors as HTTP internal server errors. |
httpscaningest
Package httpscaningest implements an HTTP API around the scaningest API.
|
Package httpscaningest implements an HTTP API around the scaningest API. |
jobqueue
Package jobqueue implements a reliable job queue that is persisted to the file system.
|
Package jobqueue implements a reliable job queue that is persisted to the file system. |
legacyconvert
Package legacyconvert contains the not-yet-refactored scan2drive conversion logic.
|
Package legacyconvert contains the not-yet-refactored scan2drive conversion logic. |
mayqtt
Package mayqtt implements an MQTT client which receives scan requests from scan2drive/cmd/scan and publishes status to scan2drive/ui/status.
|
Package mayqtt implements an MQTT client which receives scan requests from scan2drive/cmd/scan and publishes status to scan2drive/ui/status. |
page
Package page implements scanned pages (as JPEG), which can either be already binarized or are binarized if not loaded to memory yet.
|
Package page implements scanned pages (as JPEG), which can either be already binarized or are binarized if not loaded to memory yet. |
pdf
Package pdf implements a minimal PDF 1.7 writer, just functional enough to create a PDF file containing multiple CCITT fax-encoded DIN A4 sized pages.
|
Package pdf implements a minimal PDF 1.7 writer, just functional enough to create a PDF file containing multiple CCITT fax-encoded DIN A4 sized pages. |
scaningest
Package scaningest implements an API for ingesting scan jobs, to be used with a jobqueue.
|
Package scaningest implements an API for ingesting scan jobs, to be used with a jobqueue. |
sink/drivesink
Package drivesink implements a sink to write scans to Google Drive.
|
Package drivesink implements a sink to write scans to Google Drive. |
source/airscan
Package airscan implements a scan source from AirScan devices discovered on the local network.
|
Package airscan implements a scan source from AirScan devices discovered on the local network. |
source/fss500
Package fss500 implements a scan source for a Fujitsu ScanSnap iX500 document scanner connected via USB.
|
Package fss500 implements a scan source for a Fujitsu ScanSnap iX500 document scanner connected via USB. |
user
Package user implements a mutex-protected user store (containing metadata, credentials, and job queue) that is persisted to disk.
|
Package user implements a mutex-protected user store (containing metadata, credentials, and job queue) that is persisted to disk. |
webui
Package webui implements the scan2drive web user interface using materializecss.com and jQuery.
|
Package webui implements the scan2drive web user interface using materializecss.com and jQuery. |
Click to show internal directories.
Click to hide internal directories.