rostermodel

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetAsk added in v0.56.0

func (x *Item) GetAsk() bool

func (*Item) GetGroups added in v0.56.0

func (x *Item) GetGroups() []string

func (*Item) GetJid added in v0.56.0

func (x *Item) GetJid() string

func (*Item) GetName added in v0.56.0

func (x *Item) GetName() string

func (*Item) GetSubscription added in v0.56.0

func (x *Item) GetSubscription() string

func (*Item) GetUsername added in v0.56.0

func (x *Item) GetUsername() string

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) Reset added in v0.56.0

func (x *Item) Reset()

func (*Item) String added in v0.56.0

func (x *Item) String() string

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

Jump to

Keyboard shortcuts

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