Documentation ¶
Index ¶
- Constants
- Variables
- 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 (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- 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 (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
Constants ¶
View Source
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 ¶
View Source
var File_proto_model_v1_roster_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
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) ProtoMessage ¶ added in v0.56.0
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶ added in v0.56.0
func (x *Item) ProtoReflect() protoreflect.Message
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) 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
Click to show internal directories.
Click to hide internal directories.