manager

package
v0.0.0-...-b1a3740 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: BSD-3-Clause Imports: 14 Imported by: 0

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)
	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, snmp *snmp.SNMPManager, printerPollInterval time.Duration, nativeJobQueueSize uint, jobFullUsername, ignoreRawPrinters bool, shareScope string, jobs <-chan *lib.Job, xmppNotifications <-chan xmpp.PrinterNotification) (*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()

Jump to

Keyboard shortcuts

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