directchat

package
v0.0.0-...-922b6b1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewXmpp

func NewXmpp(Meta *sjson.JSON) *shared.DirectClient

func SetLogger

func SetLogger(l *slogger.Logger) *slogger.Logger

Types

type Delay

type Delay struct {
	XMLName xml.Name      `xml:"http://jabber.org/protocol/muc#admin query"`
	Items   []stanza.Item `xml:"item"`
	Stamp   string        `xml:"stamp"`
}

func (Delay) Namespace

func (q Delay) Namespace() string

type MsgOption

type MsgOption struct {
	slack.MsgOption
}

func MsgOptionAsUser

func MsgOptionAsUser(b bool) MsgOption

func MsgOptionText

func MsgOptionText(Text string, Escape bool) MsgOption

type XMsgAddress

type XMsgAddress struct {
	stanza.MsgExtension
	XMLName xml.Name `xml:"addresses,omitempty"`
	Address struct {
		Jid  string `xml:"jid,attr"`
		Type string `xml:"type,attr"`
	} `xml:"address"`
}

type XMsgDelay

type XMsgDelay struct {
	stanza.MsgExtension
	XMLName xml.Name `xml:"delay,omitempty"`
	Stamp   string   `xml:"stamp,attr"`
	From    string   `xml:"from,attr"`
}

type XMsgSubject

type XMsgSubject struct {
	stanza.MsgExtension
	XMLName xml.Name `xml:"subject,omitempty"`
}

type XPresenceVcard

type XPresenceVcard struct {
	stanza.PresExtension
	XMLName xml.Name `xml:"x"`
	Item    struct {
		Text        string `xml:",chardata"`
		Jid         string `xml:"jid,attr"`
		Role        string `xml:"role,attr"`
		Affiliation string `xml:"affiliation,attr"`
	} `xml:"item"`
	Status []struct {
		Text string `xml:",chardata"`
		Code string `xml:"code,attr"`
	} `xml:"status"`
}

Jump to

Keyboard shortcuts

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