Version: v0.0.0-...-4c67119 Latest Latest

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

Go to latest
Published: Mar 28, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0




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"


This section is empty.


func ToMap

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


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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL