xmpp

package
v0.0.0-...-8a9cd57 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package xmpp is the Google Cloud Print XMPP interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrinterNotification

type PrinterNotification struct {
	GCPID string
	Type  PrinterNotificationType
}

type PrinterNotificationType

type PrinterNotificationType uint8
const (
	PrinterNewJobs PrinterNotificationType = iota
	PrinterDelete
)

type XMPP

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

func NewXMPP

func NewXMPP(jid, proxyName, server string, port uint16, pingTimeout, pingInterval time.Duration, getAccessToken func() (string, error), notifications chan<- PrinterNotification) (*XMPP, error)

func (*XMPP) Quit

func (x *XMPP) Quit()

Quit terminates the XMPP conversation so that new jobs stop arriving.

func (*XMPP) SetPingInterval

func (x *XMPP) SetPingInterval(interval time.Duration)

SetPingInterval sets the XMPP ping interval. Should be the min of all printers' ping intervals.

Jump to

Keyboard shortcuts

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