Versions in this module Expand all Collapse all v2 v2.1.0 Jan 3, 2022 v2.0.0 Apr 16, 2021 Changes in this version + const AvailableType + const ChatType + const ErrorType + const From + const GetType + const GroupChatType + const HeadlineType + const ID + const IQName + const Language + const MessageName + const Namespace + const NormalType + const PresenceName + const ProbeType + const ResultType + const SetType + const StreamNamespace + const SubscribeType + const SubscribedType + const To + const Type + const UnavailableType + const UnsubscribeType + const UnsubscribedType + const Version + var File_stravaganza_proto protoreflect.FileDescriptor + func IsStanza(el Element) bool + type Attribute struct + Label string + Value string + type AttributeReader interface + AllAttributes func() []Attribute + Attribute func(label string) string + AttributeCount func() int + type Builder struct + func NewBuilder(name string) *Builder + func NewBuilderFromBinary(b []byte) (*Builder, error) + func NewBuilderFromElement(element Element) *Builder + func NewBuilderFromProto(protoFrom *PBElement) *Builder + func NewIQBuilder() *Builder + func NewMessageBuilder() *Builder + func NewPresenceBuilder() *Builder + func (b *Builder) Build() Element + func (b *Builder) BuildIQ() (*IQ, error) + func (b *Builder) BuildMessage() (*Message, error) + func (b *Builder) BuildPresence() (*Presence, error) + func (b *Builder) BuildStanza() (Stanza, error) + func (b *Builder) WithAttribute(label, value string) *Builder + func (b *Builder) WithAttributes(attributes ...Attribute) *Builder + func (b *Builder) WithChild(child Element) *Builder + func (b *Builder) WithChildren(children ...Element) *Builder + func (b *Builder) WithName(name string) *Builder + func (b *Builder) WithText(text string) *Builder + func (b *Builder) WithValidateJIDs(validateJIDs bool) *Builder + func (b *Builder) WithoutAttribute(label string) *Builder + func (b *Builder) WithoutChildren(name string) *Builder + func (b *Builder) WithoutChildrenNamespace(name, ns string) *Builder + type Capabilities struct + Hash string + Node string + Ver string + type Element interface + Name func() string + Proto func() *PBElement + Text func() string + type ElementReader interface + AllChildren func() []Element + Child func(name string) Element + ChildNamespace func(name, ns string) Element + Children func(name string) []Element + ChildrenCount func() int + ChildrenNamespace func(name, ns string) []Element + type IQ struct + func (iq *IQ) IsGet() bool + func (iq *IQ) IsResult() bool + func (iq *IQ) IsSet() bool + func (iq *IQ) ResultBuilder() *Builder + func (s *IQ) Error() Element + func (s *IQ) FromJID() *jid.JID + func (s *IQ) ID() string + func (s *IQ) IsError() bool + func (s *IQ) Namespace() string + func (s *IQ) ToJID() *jid.JID + func (s *IQ) Type() string + type Message struct + func (m *Message) IsChat() bool + func (m *Message) IsGroupChat() bool + func (m *Message) IsHeadline() bool + func (m *Message) IsMessageWithBody() bool + func (m *Message) IsNormal() bool + func (s *Message) Error() Element + func (s *Message) FromJID() *jid.JID + func (s *Message) ID() string + func (s *Message) IsError() bool + func (s *Message) Namespace() string + func (s *Message) ToJID() *jid.JID + func (s *Message) Type() string + type PBAttribute struct + Label string + Value string + func (*PBAttribute) Descriptor() ([]byte, []int) + func (*PBAttribute) ProtoMessage() + func (x *PBAttribute) GetLabel() string + func (x *PBAttribute) GetValue() string + func (x *PBAttribute) ProtoReflect() protoreflect.Message + func (x *PBAttribute) Reset() + func (x *PBAttribute) String() string + type PBElement struct + Attributes []*PBAttribute + Elements []*PBElement + Name string + Text string + func (*PBElement) Descriptor() ([]byte, []int) + func (*PBElement) ProtoMessage() + func (x *PBElement) GetAttributes() []*PBAttribute + func (x *PBElement) GetElements() []*PBElement + func (x *PBElement) GetName() string + func (x *PBElement) GetText() string + func (x *PBElement) ProtoReflect() protoreflect.Message + func (x *PBElement) Reset() + func (x *PBElement) String() string + type Presence struct + func (p *Presence) Capabilities() *Capabilities + func (p *Presence) IsAvailable() bool + func (p *Presence) IsProbe() bool + func (p *Presence) IsSubscribe() bool + func (p *Presence) IsSubscribed() bool + func (p *Presence) IsUnavailable() bool + func (p *Presence) IsUnsubscribe() bool + func (p *Presence) IsUnsubscribed() bool + func (p *Presence) Priority() int8 + func (p *Presence) ShowState() ShowState + func (p *Presence) Status() string + func (s *Presence) Error() Element + func (s *Presence) FromJID() *jid.JID + func (s *Presence) ID() string + func (s *Presence) IsError() bool + func (s *Presence) Namespace() string + func (s *Presence) ToJID() *jid.JID + func (s *Presence) Type() string + type ShowState int + const AvailableShowState + const AwayShowState + const ChatShowState + const DoNotDisturbShowState + const ExtendedAwaysShowState + type Stanza interface + Error func() Element + FromJID func() *jid.JID + ID func() string + IsError func() bool + Namespace func() string + ToJID func() *jid.JID + Type func() string + type XMLSerializer interface + ToXML func(w io.Writer, includeClosing bool) error Other modules containing this package github.com/jackal-xmpp/stravaganza