rostermodel

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 6 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Groups.ProtoReflect.Descriptor instead.

func (*Groups) GetGroups added in v0.57.0

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

func (*Groups) MarshalBinary added in v0.58.0

func (x *Groups) MarshalBinary() (data []byte, err error)

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

func (x *Groups) Reset()

func (*Groups) String added in v0.57.0

func (x *Groups) String() string

func (*Groups) UnmarshalBinary added in v0.58.0

func (x *Groups) UnmarshalBinary(data []byte) error

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) 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) MarshalBinary added in v0.58.0

func (x *Item) MarshalBinary() (data []byte, err error)

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

func (x *Item) Reset()

func (*Item) String added in v0.56.0

func (x *Item) String() string

func (*Item) UnmarshalBinary added in v0.58.0

func (x *Item) UnmarshalBinary(data []byte) error

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

Deprecated: Use Items.ProtoReflect.Descriptor instead.

func (*Items) GetItems added in v0.57.0

func (x *Items) GetItems() []*Item

func (*Items) MarshalBinary added in v0.58.0

func (x *Items) MarshalBinary() (data []byte, err error)

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

func (x *Items) Reset()

func (*Items) String added in v0.57.0

func (x *Items) String() string

func (*Items) UnmarshalBinary added in v0.58.0

func (x *Items) UnmarshalBinary(data []byte) error

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetVersion added in v0.58.0

func (x *Version) GetVersion() int32

func (*Version) MarshalBinary added in v0.58.0

func (x *Version) MarshalBinary() (data []byte, err error)

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

func (x *Version) Reset()

func (*Version) String added in v0.58.0

func (x *Version) String() string

func (*Version) UnmarshalBinary added in v0.58.0

func (x *Version) UnmarshalBinary(data []byte) error

UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.

Jump to

Keyboard shortcuts

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