Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Versioning bool `yaml:"versioning"`
}
Config represents a roster configuration.
type PresenceHandler ¶ added in v0.3.0
type PresenceHandler struct {
// contains filtered or unexported fields
}
PresenceHandler represents a roster presence handler.
func NewPresenceHandler ¶ added in v0.3.0
func NewPresenceHandler(cfg *Config) *PresenceHandler
NewPresenceHandler returns a new presence handler instance.
func (*PresenceHandler) ProcessPresence ¶ added in v0.3.0
func (ph *PresenceHandler) ProcessPresence(presence *xml.Presence) error
ProcessPresence processes an incoming presence stanza.
type Roster ¶
type Roster struct {
// contains filtered or unexported fields
}
Roster represents a roster server stream module.
func (*Roster) MatchesIQ ¶
MatchesIQ returns whether or not an IQ should be processed by the roster module.
func (*Roster) ProcessIQ ¶
ProcessIQ processes a roster IQ taking according actions over the associated stream.
func (*Roster) ProcessPresence ¶
ProcessPresence process an incoming roster presence.
func (*Roster) RegisterDisco ¶ added in v0.3.0
RegisterDisco registers disco entity features/items associated to roster module.
Click to show internal directories.
Click to hide internal directories.