interfaces

package
v0.4.0-el1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: GPL-3.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	Authenticate(string, string) error
	AuthenticationFailure() error
	BindResource() error
	Cancel(data.Cookie) bool
	Cache() cache.WithExpiry
	ChangePassword(string, string, string) error
	Close() error
	Config() *data.Config
	CustomStorage() map[xml.Name]reflect.Type
	DiscoveryFeatures(string) ([]string, bool)
	DiscoveryFeaturesAndIdentities(string) ([]data.DiscoveryIdentity, []string, bool)
	Features() data.StreamFeatures
	GetRosterDelimiter() (string, error)
	In() *xml.Decoder
	Lock() *sync.Mutex
	Next() (data.Stanza, error)
	OriginDomain() string
	Out() io.Writer
	Rand() io.Reader
	RawOut() io.WriteCloser
	ReadStanzas(chan<- data.Stanza) error
	RegisterAccount(string, string) (bool, error)
	RequestRoster() (<-chan data.Stanza, data.Cookie, error)
	RequestVCard() (<-chan data.Stanza, data.Cookie, error)
	Send(string, string, bool) error
	SendMessage(*data.Message) error
	SendIQ(string, string, interface{}) (<-chan data.Stanza, data.Cookie, error)
	SendIQReply(string, string, string, interface{}) error
	SendInitialStreamHeader() error
	SendPing() (reply <-chan data.Stanza, cookie data.Cookie, err error)
	SendPresence(string, string, string, string) error
	SendMUCPresence(string, *data.MUC) error
	ServerAddress() string
	SetInOut(*xml.Decoder, io.Writer)
	SetKeepaliveOut(io.Writer)
	SetRawOut(io.WriteCloser)
	SetServerAddress(string)
	SignalPresence(string) error

	SetChannelBinding([]byte)
	GetChannelBinding() []byte

	GetJIDResource() string
	SetJIDResource(string)

	HasSupportTo(entity string, features ...string) bool

	QueryServiceInformation(entity string) (*data.DiscoveryInfoQuery, error)
	QueryServiceItems(entity string) (*data.DiscoveryItemsQuery, error)
	EntityExists(entity string) (bool, error)

	ServerHasFeature(ns string) bool
}

Conn represents a connection to an XMPP server.

type Dialer

type Dialer interface {
	Config() data.Config
	Dial() (Conn, error)
	GetServer() string
	RegisterAccount(data.FormCallback) (Conn, error)
	ServerAddress() string
	SetConfig(data.Config)
	SetJID(string)
	SetPassword(string)
	SetProxy(proxy.Dialer)
	SetResource(string)
	SetServerAddress(v string)
	SetShouldConnectTLS(bool)
	SetShouldSendALPN(bool)
	SetLogger(coylog.Logger)
	SetKnown(*servers.Server)
}

Dialer connects and authenticates to an XMPP server

type DialerFactory

type DialerFactory func(tls.Verifier, tls.Factory) Dialer

DialerFactory represents a function that can create a Dialer

Jump to

Keyboard shortcuts

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