scanner

package
v0.0.0-...-f43737a Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PiScanner

type PiScanner struct {
	HidMaps struct {
		// contains filtered or unexported fields
	}
	DB_connection struct {
		// contains filtered or unexported fields
	}
}

func ScannerSetup

func ScannerSetup(db_path string) (*PiScanner, error)

DB_PATH - path for SQLite file.

func (PiScanner) BarcodeAlreadyScanned

func (scanner PiScanner) BarcodeAlreadyScanned(barcode string) (int, error)

func (PiScanner) IsDBConnected

func (scanner PiScanner) IsDBConnected() bool

func (PiScanner) ReadDevice

func (scanner PiScanner) ReadDevice(dev_path string, wg *sync.WaitGroup)

Not sure what this should return if anything at all.

func (PiScanner) UpdateScan

func (scanner PiScanner) UpdateScan(scan string, scanner_id string) (sql.Result, error)

Jump to

Keyboard shortcuts

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