roster

package
v0.0.0-...-6e7897a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Roster

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

func (*Roster) Add

func (r *Roster) Add(jid xmpp.JID, name string)

func (*Roster) FetchRoster

func (r *Roster) FetchRoster(res func([]*RosterItem))

FetchRoster fetches the roster from the server

func (*Roster) HandleStanza

func (r *Roster) HandleStanza(s xmpp.Stanza)

func (*Roster) Offline

func (r *Roster) Offline(error)

func (*Roster) Online

func (r *Roster) Online(s xmppc.Session)

func (*Roster) Remove

func (r *Roster) Remove(jid xmpp.JID)

type RosterItem

type RosterItem struct {
	JID          xmpp.JID
	Name         string
	Subscription string
}

Jump to

Keyboard shortcuts

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