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
Click to show internal directories.
Click to hide internal directories.