xmpp

package
v0.0.0-...-2d0af6a Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NsJabberClient = "jabber:client"
	NsStream       = "http://etherx.jabber.org/streams"
	NsIqAuth       = "jabber:iq:auth"
	NsIqRoster     = "jabber:iq:roster"
	NsTLS          = "urn:ietf:params:xml:ns:xmpp-tls"
	NsDisco        = "http://jabber.org/protocol/disco#items"
	NsMuc          = "http://jabber.org/protocol/muc"
)

Variables

This section is empty.

Functions

func ToMap

func ToMap(attr []xml.Attr) map[string]string

Types

type Conn

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

func Dial

func Dial(host string) (*Conn, error)

func (*Conn) Auth

func (c *Conn) Auth(user, pass, resource string)

func (*Conn) Body

func (c *Conn) Body() string

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Discover

func (c *Conn) Discover(from, to string)

func (*Conn) Features

func (c *Conn) Features() *features

func (*Conn) KeepAlive

func (c *Conn) KeepAlive()

func (*Conn) MUCPresence

func (c *Conn) MUCPresence(roomId, jid string)

func (*Conn) MUCSend

func (c *Conn) MUCSend(to, from, body string)

func (*Conn) Next

func (c *Conn) Next() (xml.StartElement, error)

func (*Conn) Presence

func (c *Conn) Presence(jid, pres string)

func (*Conn) Query

func (c *Conn) Query() *query

func (*Conn) Roster

func (c *Conn) Roster(from, to string)

func (*Conn) Send

func (c *Conn) Send(to, from, body string)

func (*Conn) StartTLS

func (c *Conn) StartTLS()

func (*Conn) Stream

func (c *Conn) Stream(jid, host string)

func (*Conn) UseTLS

func (c *Conn) UseTLS(host string)

type Message

type Message struct {
	Jid         string
	MentionName string
	Body        string
}

Jump to

Keyboard shortcuts

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