threema

package
v0.0.0-...-3fd2139 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: AGPL-3.0, AGPL-3.0-or-later Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewThreema

func NewThreema(config map[string]interface{}) (component.Component, error)

Types

type Account

type Account struct {
	models.AccountThreema

	ThreemaID *o3.ThreemaID

	XMPPResource map[string]map[string]bool
	// contains filtered or unexported fields
}

func (*Account) FileToXMPP

func (a *Account) FileToXMPP(from string, msgID uint64, ext string, data []byte) (stanza.Message, error)

func (*Account) Send

func (a *Account) Send(to string, msg stanza.Message) error

type Bot

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

func (*Bot) Handle

func (b *Bot) Handle(request string) string

type PresMUCUserItem

type PresMUCUserItem struct {
	XMLName     xml.Name `xml:"item"`
	Affiliation string   `xml:"affiliation,attr"`
	Role        string   `xml:"role,attr"`
}

type PresMUCUserList

type PresMUCUserList struct {
	XMLName xml.Name `xml:"http://jabber.org/protocol/muc#user x"`
	Items   []PresMUCUserItem
	Status  *PresMUCUserStatus
}

type PresMUCUserStatus

type PresMUCUserStatus struct {
	XMLName xml.Name `xml:"status"`
	Code    int      `xml:"code,attr"`
}

type Threema

type Threema struct {
	component.Component
	// contains filtered or unexported fields
}

func (*Threema) Connect

func (t *Threema) Connect() (chan stanza.Packet, error)

func (*Threema) Send

func (t *Threema) Send(packet stanza.Packet)

Jump to

Keyboard shortcuts

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