Documentation ¶
Index ¶
- Constants
- Variables
- type Groups
- func (*Groups) Descriptor() ([]byte, []int)deprecated
- func (x *Groups) GetGroups() []string
- func (x *Groups) MarshalBinary() (data []byte, err error)
- func (*Groups) ProtoMessage()
- func (x *Groups) ProtoReflect() protoreflect.Message
- func (x *Groups) Reset()
- func (x *Groups) String() string
- func (x *Groups) UnmarshalBinary(data []byte) error
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetAsk() bool
- func (x *Item) GetGroups() []string
- func (x *Item) GetJid() string
- func (x *Item) GetName() string
- func (x *Item) GetSubscription() string
- func (x *Item) GetUsername() string
- func (x *Item) MarshalBinary() (data []byte, err error)
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- func (x *Item) UnmarshalBinary(data []byte) error
- type Items
- func (*Items) Descriptor() ([]byte, []int)deprecated
- func (x *Items) GetItems() []*Item
- func (x *Items) MarshalBinary() (data []byte, err error)
- func (*Items) ProtoMessage()
- func (x *Items) ProtoReflect() protoreflect.Message
- func (x *Items) Reset()
- func (x *Items) String() string
- func (x *Items) UnmarshalBinary(data []byte) error
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetContact() string
- func (x *Notification) GetJid() string
- func (x *Notification) GetPresence() *stravaganza.PBElement
- func (x *Notification) MarshalBinary() (data []byte, err error)
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- func (x *Notification) UnmarshalBinary(data []byte) error
- type Notifications
- func (*Notifications) Descriptor() ([]byte, []int)deprecated
- func (x *Notifications) GetNotifications() []*Notification
- func (x *Notifications) MarshalBinary() (data []byte, err error)
- func (*Notifications) ProtoMessage()
- func (x *Notifications) ProtoReflect() protoreflect.Message
- func (x *Notifications) Reset()
- func (x *Notifications) String() string
- func (x *Notifications) UnmarshalBinary(data []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetVersion() int32
- func (x *Version) MarshalBinary() (data []byte, err error)
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
- func (x *Version) UnmarshalBinary(data []byte) error
Constants ¶
const ( // None represents 'none' subscription type. None = "none" // From represents 'from' subscription type. From = "from" // To represents 'to' subscription type. To = "to" // Both represents 'both' subscription type. Both = "both" // Remove represents 'remove' subscription type. Remove = "remove" )
Variables ¶
var File_proto_model_v1_roster_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Groups ¶ added in v0.57.0
type Groups struct { Groups []string `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
Groups represents a set of roster groups.
func (*Groups) Descriptor
deprecated
added in
v0.57.0
func (*Groups) MarshalBinary ¶ added in v0.58.0
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Groups) ProtoMessage ¶ added in v0.57.0
func (*Groups) ProtoMessage()
func (*Groups) ProtoReflect ¶ added in v0.57.0
func (x *Groups) ProtoReflect() protoreflect.Message
func (*Groups) UnmarshalBinary ¶ added in v0.58.0
UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.
type Item ¶
type Item struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Jid string `protobuf:"bytes,2,opt,name=jid,proto3" json:"jid,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Subscription string `protobuf:"bytes,4,opt,name=subscription,proto3" json:"subscription,omitempty"` Ask bool `protobuf:"varint,5,opt,name=ask,proto3" json:"ask,omitempty"` Groups []string `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
Item represents a roster item entity.
func (*Item) Descriptor
deprecated
added in
v0.56.0
func (*Item) GetSubscription ¶ added in v0.56.0
func (*Item) GetUsername ¶ added in v0.56.0
func (*Item) MarshalBinary ¶ added in v0.58.0
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Item) ProtoMessage ¶ added in v0.56.0
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶ added in v0.56.0
func (x *Item) ProtoReflect() protoreflect.Message
func (*Item) UnmarshalBinary ¶ added in v0.58.0
UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.
type Items ¶ added in v0.57.0
type Items struct { Items []*Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
Items represent a set of roster items.
func (*Items) Descriptor
deprecated
added in
v0.57.0
func (*Items) MarshalBinary ¶ added in v0.58.0
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Items) ProtoMessage ¶ added in v0.57.0
func (*Items) ProtoMessage()
func (*Items) ProtoReflect ¶ added in v0.57.0
func (x *Items) ProtoReflect() protoreflect.Message
func (*Items) UnmarshalBinary ¶ added in v0.58.0
UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.
type Notification ¶
type Notification struct { Contact string `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` Jid string `protobuf:"bytes,2,opt,name=jid,proto3" json:"jid,omitempty"` Presence *stravaganza.PBElement `protobuf:"bytes,3,opt,name=presence,proto3" json:"presence,omitempty"` // contains filtered or unexported fields }
Notification represents a roster subscription pending notification.
func (*Notification) Descriptor
deprecated
added in
v0.56.0
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetContact ¶ added in v0.56.0
func (x *Notification) GetContact() string
func (*Notification) GetJid ¶ added in v0.56.0
func (x *Notification) GetJid() string
func (*Notification) GetPresence ¶ added in v0.56.0
func (x *Notification) GetPresence() *stravaganza.PBElement
func (*Notification) MarshalBinary ¶ added in v0.58.0
func (x *Notification) MarshalBinary() (data []byte, err error)
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Notification) ProtoMessage ¶ added in v0.56.0
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶ added in v0.56.0
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶ added in v0.56.0
func (x *Notification) Reset()
func (*Notification) String ¶ added in v0.56.0
func (x *Notification) String() string
func (*Notification) UnmarshalBinary ¶ added in v0.58.0
func (x *Notification) UnmarshalBinary(data []byte) error
UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.
type Notifications ¶ added in v0.57.0
type Notifications struct { Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
Notifications represents a set of roster notifications.
func (*Notifications) Descriptor
deprecated
added in
v0.57.0
func (*Notifications) Descriptor() ([]byte, []int)
Deprecated: Use Notifications.ProtoReflect.Descriptor instead.
func (*Notifications) GetNotifications ¶ added in v0.57.0
func (x *Notifications) GetNotifications() []*Notification
func (*Notifications) MarshalBinary ¶ added in v0.58.0
func (x *Notifications) MarshalBinary() (data []byte, err error)
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Notifications) ProtoMessage ¶ added in v0.57.0
func (*Notifications) ProtoMessage()
func (*Notifications) ProtoReflect ¶ added in v0.57.0
func (x *Notifications) ProtoReflect() protoreflect.Message
func (*Notifications) Reset ¶ added in v0.57.0
func (x *Notifications) Reset()
func (*Notifications) String ¶ added in v0.57.0
func (x *Notifications) String() string
func (*Notifications) UnmarshalBinary ¶ added in v0.58.0
func (x *Notifications) UnmarshalBinary(data []byte) error
UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.
type Version ¶ added in v0.58.0
type Version struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Version represents a roster version number.
func (*Version) Descriptor
deprecated
added in
v0.58.0
func (*Version) GetVersion ¶ added in v0.58.0
func (*Version) MarshalBinary ¶ added in v0.58.0
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Version) ProtoMessage ¶ added in v0.58.0
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶ added in v0.58.0
func (x *Version) ProtoReflect() protoreflect.Message
func (*Version) UnmarshalBinary ¶ added in v0.58.0
UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.