Documentation ¶
Index ¶
Constants ¶
View Source
const (
// RSMNamespace specifies XEP-0059 namespace constant value.
RSMNamespace = "http://jabber.org/protocol/rsm"
)
Variables ¶
View Source
var ( // ErrPageNotFound will be returned by GetResultSetPage when page request cannot be satisfied. ErrPageNotFound = errors.New("page not found") )
Functions ¶
This section is empty.
Types ¶
type Request ¶
Request represents a rsm request value.
func NewRequestFromElement ¶
func NewRequestFromElement(elem stravaganza.Element) (*Request, error)
NewRequestFromElement returns a Request derived from an XML element.
type Result ¶
Result represents a rsm result value.
func GetResultSetPage ¶
GetResultSetPage returns result page based on the passed request.
func (*Result) Element ¶
func (r *Result) Element() stravaganza.Element
Element returns XML representation of a Result instance.
Click to show internal directories.
Click to hide internal directories.