chat

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 Chat

type Chat struct {
	MessageHandler
	// contains filtered or unexported fields
}

func (*Chat) HandleMessage

func (chat *Chat) HandleMessage(data *xmpp.Message)

func (*Chat) HandleStanza

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

func (*Chat) Offline

func (r *Chat) Offline(error)

func (*Chat) Online

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

func (*Chat) SendMessage

func (chat *Chat) SendMessage(to xmpp.JID, body string)

type Message

type Message struct {
	From xmpp.JID
	To   xmpp.JID
	Body string
	Type string
}

type MessageHandler

type MessageHandler func(*Message)

Jump to

Keyboard shortcuts

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