Documentation ¶
Overview ¶
Package carbons implements carbon copying messages to all interested clients.
Index ¶
- Constants
- Variables
- func Disable(ctx context.Context, s *xmpp.Session) error
- func DisableIQ(ctx context.Context, s *xmpp.Session, iq stanza.IQ) error
- func Enable(ctx context.Context, s *xmpp.Session) error
- func EnableIQ(ctx context.Context, s *xmpp.Session, iq stanza.IQ) error
- func Handle(h Handler) mux.Option
- type Handler
Constants ¶
View Source
const ( NS = `urn:xmpp:carbons:2` NSRules = `urn:xmpp:carbons:rules:0` )
Namespaces used by this package, provided as a convenience.
Variables ¶
View Source
var (
Feature = info.Feature{Var: NS}
)
A list of service discovery features that are supported by this package.
Functions ¶
func DisableIQ ¶
DisableIQ is like Disable but it allows you to customize the IQ stanza being sent. Changing the type of the IQ has no effect.
Types ¶
type Handler ¶
Handler can be used to handle incoming carbon copied messages.
func (Handler) ForFeatures ¶
ForFeatures implements info.FeatureIter.
func (Handler) HandleMessage ¶
HandleMessage satisfies mux.MessageHandler. it is used by the multiplexer and normally does not need to be called by the user.
Click to show internal directories.
Click to hide internal directories.