Documentation ¶
Index ¶
- type DiscoInfo
- func (di *DiscoInfo) Entity(jid, node string) *Entity
- func (di *DiscoInfo) MatchesIQ(iq *xml.IQ) bool
- func (di *DiscoInfo) ProcessIQ(iq *xml.IQ)
- func (di *DiscoInfo) RegisterDefaultEntities() error
- func (di *DiscoInfo) RegisterDisco(discoInfo *DiscoInfo)
- func (di *DiscoInfo) RegisterEntity(jid, node string) (*Entity, error)
- type Entity
- func (e *Entity) AddFeature(feature Feature)
- func (e *Entity) AddIdentity(identity Identity)
- func (e *Entity) AddItem(item Item)
- func (e *Entity) Features() []Feature
- func (e *Entity) Identities() []Identity
- func (e *Entity) Items() []Item
- func (e *Entity) RemoveFeature(feature Feature)
- func (e *Entity) RemoveIdentity(identity Identity)
- func (e *Entity) RemoveItem(item Item)
- type Feature
- type Identity
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoInfo ¶
type DiscoInfo struct {
// contains filtered or unexported fields
}
DiscoInfo represents a disco info server stream module.
func (*DiscoInfo) MatchesIQ ¶
MatchesIQ returns whether or not an IQ should be processed by the disco info module.
func (*DiscoInfo) ProcessIQ ¶
ProcessIQ processes a disco info IQ taking according actions over the associated stream.
func (*DiscoInfo) RegisterDefaultEntities ¶
RegisterDefaultEntities register and sets identities for the default domain and account disco entities.
func (*DiscoInfo) RegisterDisco ¶ added in v0.3.0
RegisterDisco registers disco entity features/items associated to disco info module.
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
Entity represents a disco info item entity.
func (*Entity) AddFeature ¶
AddFeature adds a new disco entity feature.
func (*Entity) AddIdentity ¶
AddIdentity adds a new disco entity identity.
func (*Entity) Identities ¶
Identities returns disco entity identities.
func (*Entity) RemoveFeature ¶ added in v0.3.0
RemoveFeature removes a disco feature from entity.
func (*Entity) RemoveIdentity ¶ added in v0.3.0
RemoveIdentity removes a disco identity from entity.
func (*Entity) RemoveItem ¶ added in v0.3.0
RemoveItem removes a disco item from entity.