items

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package items contains service discovery items.

These were separated out into a separate package to prevent import loops.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	XMLName xml.Name `xml:"http://jabber.org/protocol/disco#items item"`
	JID     jid.JID  `xml:"jid,attr"`
	Name    string   `xml:"name,attr,omitempty"`
	Node    string   `xml:"node,attr,omitempty"`
}

Item represents a discovered item.

func (Item) MarshalXML

func (i Item) MarshalXML(e *xml.Encoder, _ xml.StartElement) error

MarshalXML implements xml.Marshaler.

func (Item) TokenReader

func (i Item) TokenReader() xml.TokenReader

TokenReader implements xmlstream.Marshaler.

func (Item) WriteXML

func (i Item) WriteXML(w xmlstream.TokenWriter) (int, error)

WriteXML implements xmlstream.WriterTo.

type Iter

type Iter interface {
	ForItems(node string, f func(Item) error) error
}

Iter is the interface implemented by types that respond to service discovery requests for items.

Jump to

Keyboard shortcuts

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