xmpp

package
v0.0.0-...-ca2726e Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 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.

Jump to

Keyboard shortcuts

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