capsmodel

package
v0.0.0-...-aeec266 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	Node     string
	Ver      string
	Features []string
}

Capabilities represents presence capabilities info.

func (*Capabilities) FromBytes

func (c *Capabilities) FromBytes(buf *bytes.Buffer) error

FromBytes deserializes a Capabilities entiry from its binary representation.

func (*Capabilities) HasFeature

func (c *Capabilities) HasFeature(feature string) bool

HasFeature returns whether or not Capabilities instance a concrete feature.

func (*Capabilities) ToBytes

func (c *Capabilities) ToBytes(buf *bytes.Buffer) error

ToBytes converts a Capabilities entiry to its binary representation.

type PresenceCaps

type PresenceCaps struct {
	Presence *xmpp.Presence
	Caps     *Capabilities
}

PresenceCaps represents the combination of along with its capabilities.

func (*PresenceCaps) FromBytes

func (p *PresenceCaps) FromBytes(buf *bytes.Buffer) error

FromBytes deserializes a Capabilities entity from its binary representation.

func (*PresenceCaps) ToBytes

func (p *PresenceCaps) ToBytes(buf *bytes.Buffer) error

ToBytes converts a Capabilities entity to its binary representation.

Jump to

Keyboard shortcuts

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