Documentation ¶
Index ¶
- type Info
- type InfoMap
- func (im *InfoMap) Bool(k string) bool
- func (im *InfoMap) Float(k string) float64
- func (im *InfoMap) Int(k string) int
- func (im *InfoMap) Map() map[string]string
- func (im *InfoMap) ReadOnly() Info
- func (im *InfoMap) SetBool(k string, v bool)
- func (im *InfoMap) SetFloat(k string, v float64)
- func (im *InfoMap) SetInt(k string, v int)
- func (im *InfoMap) SetString(k, v string)
- func (im *InfoMap) String(k string) string
- type ResourceDesc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info interface { // String returns string value associated to k key. String(k string) string // Bool returns bool value associated to k key. Bool(k string) bool // Int returns int value associated to k key. Int(k string) int // Float returns float64 value associated to k key. Float(k string) float64 // Map returns map info set copy. Map() map[string]string }
Info represents C2S immutable info set.
type InfoMap ¶ added in v0.56.0
type InfoMap struct {
// contains filtered or unexported fields
}
InfoMap represents a mutable c2s info set.
func NewInfoMap ¶ added in v0.56.0
func NewInfoMap() *InfoMap
NewInfoMap returns an empty mutable info set.
func NewInfoMapFromInfo ¶ added in v0.56.0
NewInfoMapFromInfo returns a mutable info set derived from a read-only info map.
func NewInfoMapFromMap ¶ added in v0.56.0
NewInfoMapFromMap returns a mutable info set of derived from m.
type ResourceDesc ¶ added in v0.56.0
type ResourceDesc interface { // InstanceID specifies the instance identifier that registered the resource. InstanceID() string // JID returns the resource associated JID value. JID() *jid.JID // Presence returns the resource associated presence stanza. Presence() *stravaganza.Presence // Info returns resource registered info. Info() Info // IsAvailable returns presence available value. IsAvailable() bool // Priority returns resource presence priority. Priority() int8 }
ResourceDesc represents read-only a resource description.
func NewResourceDesc ¶ added in v0.56.0
func NewResourceDesc(instanceID string, jd *jid.JID, pr *stravaganza.Presence, inf Info) ResourceDesc
NewResourceDesc initializes and returns a read-only resource description.
Click to show internal directories.
Click to hide internal directories.