xmpp

package
v0.0.0-...-835dc87 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: BSD-3-Clause Imports: 9 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"
	NsSASL         = "urn:ietf:params:xml:ns:xmpp-sasl"
	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) 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) MUCPart

func (c *Conn) MUCPart(roomId string)

func (*Conn) MUCPresence

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

func (*Conn) MUCSend

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

func (*Conn) Next

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

func (*Conn) Oauth

func (c *Conn) Oauth(token, resource string)

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) 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