manager

package
v0.0.0-...-c490dda Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: BSD-3-Clause Imports: 14 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NativePrintSystem

type NativePrintSystem interface {
	GetPrinters() ([]lib.Printer, error)
	GetJobState(printerName string, jobID uint32) (*cdd.PrintJobStateDiff, error)
	Print(printer *lib.Printer, fileName, title, user, gcpJobID string, ticket *cdd.CloudJobTicket) (uint32, error)
	ReleaseJob(printerName string, jobID uint32) error
	RemoveCachedPPD(printerName string)
}

type PrinterManager

type PrinterManager struct {
	// contains filtered or unexported fields
}

Manages state and interactions between the native print system and Google Cloud Print.

func NewPrinterManager

func NewPrinterManager(native NativePrintSystem, gcp *gcp.GoogleCloudPrint, privet *privet.Privet, printerPollInterval time.Duration, nativeJobQueueSize uint, jobFullUsername bool, shareScope string, jobs <-chan *lib.Job, notifications <-chan notification.PrinterNotification, useFcm bool) (*PrinterManager, error)

func (*PrinterManager) GetJobStats

func (pm *PrinterManager) GetJobStats() (uint, uint, uint, error)

GetJobStats returns information that is useful for monitoring the connector.

func (*PrinterManager) Quit

func (pm *PrinterManager) Quit()

func (*PrinterManager) SyncPrinters

func (pm *PrinterManager) SyncPrinters(ignorePrivet bool) error

Jump to

Keyboard shortcuts

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