archivemodel

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_model_v1_archive_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Filters

type Filters struct {

	// start is used to filter out messages before a certain date/time.
	Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	// end is used to filter out messages after a certain date/time.
	End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	// with contains a JID against which to match messages.
	With string `protobuf:"bytes,3,opt,name=with,proto3" json:"with,omitempty"`
	// before_id is the id of the newest message user wants to fetch.
	BeforeId string `protobuf:"bytes,4,opt,name=before_id,json=beforeId,proto3" json:"before_id,omitempty"`
	// after_id is the id of the oldest message user wants to fetch.
	AfterId string `protobuf:"bytes,5,opt,name=after_id,json=afterId,proto3" json:"after_id,omitempty"`
	// ids contains one or more ids the user wants to fetch.
	Ids []string `protobuf:"bytes,6,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

Filters define a set of filters to be applied when fetching archive messages.

func (*Filters) Descriptor deprecated

func (*Filters) Descriptor() ([]byte, []int)

Deprecated: Use Filters.ProtoReflect.Descriptor instead.

func (*Filters) GetAfterId

func (x *Filters) GetAfterId() string

func (*Filters) GetBeforeId

func (x *Filters) GetBeforeId() string

func (*Filters) GetEnd

func (x *Filters) GetEnd() *timestamppb.Timestamp

func (*Filters) GetIds

func (x *Filters) GetIds() []string

func (*Filters) GetStart

func (x *Filters) GetStart() *timestamppb.Timestamp

func (*Filters) GetWith

func (x *Filters) GetWith() string

func (*Filters) ProtoMessage

func (*Filters) ProtoMessage()

func (*Filters) ProtoReflect

func (x *Filters) ProtoReflect() protoreflect.Message

func (*Filters) Reset

func (x *Filters) Reset()

func (*Filters) String

func (x *Filters) String() string

type Message

type Message struct {

	// archived_id is the message archive identifier.
	ArchiveId string `protobuf:"bytes,1,opt,name=archive_id,json=archiveId,proto3" json:"archive_id,omitempty"`
	// id is the message archive unique identifier.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// from_jid is the message from jid value.
	FromJid string `protobuf:"bytes,3,opt,name=from_jid,json=fromJid,proto3" json:"from_jid,omitempty"`
	// to_jid is the message from jid value.
	ToJid string `protobuf:"bytes,4,opt,name=to_jid,json=toJid,proto3" json:"to_jid,omitempty"`
	// message is the archived message.
	Message *stravaganza.PBElement `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	// stamp is the timestamp in which the message was archived.
	Stamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=stamp,proto3" json:"stamp,omitempty"`
	// contains filtered or unexported fields
}

Message represents an archive message entity.

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetArchiveId

func (x *Message) GetArchiveId() string

func (*Message) GetFromJid

func (x *Message) GetFromJid() string

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetMessage

func (x *Message) GetMessage() *stravaganza.PBElement

func (*Message) GetStamp

func (x *Message) GetStamp() *timestamppb.Timestamp

func (*Message) GetToJid

func (x *Message) GetToJid() string

func (*Message) MarshalBinary

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

MarshalBinary satisfies encoding.BinaryMarshaler interface.

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

func (*Message) UnmarshalBinary

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

UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.

type Messages

type Messages struct {
	ArchiveMessages []*Message `protobuf:"bytes,1,rep,name=archive_messages,json=archiveMessages,proto3" json:"archive_messages,omitempty"`
	// contains filtered or unexported fields
}

Messages represents a set of archive messages.

func (*Messages) Descriptor deprecated

func (*Messages) Descriptor() ([]byte, []int)

Deprecated: Use Messages.ProtoReflect.Descriptor instead.

func (*Messages) GetArchiveMessages

func (x *Messages) GetArchiveMessages() []*Message

func (*Messages) MarshalBinary

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

MarshalBinary satisfies encoding.BinaryMarshaler interface.

func (*Messages) ProtoMessage

func (*Messages) ProtoMessage()

func (*Messages) ProtoReflect

func (x *Messages) ProtoReflect() protoreflect.Message

func (*Messages) Reset

func (x *Messages) Reset()

func (*Messages) String

func (x *Messages) String() string

func (*Messages) UnmarshalBinary

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

UnmarshalBinary satisfies encoding.BinaryUnmarshaler interface.

type Metadata

type Metadata struct {

	// start_timestamp is the identifier of the first archive message.
	StartId string `protobuf:"bytes,1,opt,name=start_id,json=startId,proto3" json:"start_id,omitempty"`
	// start_timestamp is the timestamp value of the first archive message.
	StartTimestamp string `protobuf:"bytes,2,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	// end_id is the identifier of the last archive message.
	EndId string `protobuf:"bytes,3,opt,name=end_id,json=endId,proto3" json:"end_id,omitempty"`
	// end_timestamp is the timestamp value of the last archive message.
	EndTimestamp string `protobuf:"bytes,4,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"`
	// contains filtered or unexported fields
}

Metadata represents an archive metadata information.

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetEndId

func (x *Metadata) GetEndId() string

func (*Metadata) GetEndTimestamp

func (x *Metadata) GetEndTimestamp() string

func (*Metadata) GetStartId

func (x *Metadata) GetStartId() string

func (*Metadata) GetStartTimestamp

func (x *Metadata) GetStartTimestamp() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

Jump to

Keyboard shortcuts

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