Documentation ¶
Index ¶
- Variables
- type Filters
- func (*Filters) Descriptor() ([]byte, []int)deprecated
- func (x *Filters) GetAfterId() string
- func (x *Filters) GetBeforeId() string
- func (x *Filters) GetEnd() *timestamppb.Timestamp
- func (x *Filters) GetIds() []string
- func (x *Filters) GetStart() *timestamppb.Timestamp
- func (x *Filters) GetWith() string
- func (*Filters) ProtoMessage()
- func (x *Filters) ProtoReflect() protoreflect.Message
- func (x *Filters) Reset()
- func (x *Filters) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetArchiveId() string
- func (x *Message) GetFromJid() string
- func (x *Message) GetId() string
- func (x *Message) GetMessage() *stravaganza.PBElement
- func (x *Message) GetStamp() *timestamppb.Timestamp
- func (x *Message) GetToJid() string
- func (x *Message) MarshalBinary() (data []byte, err error)
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- func (x *Message) UnmarshalBinary(data []byte) error
- type Messages
- func (*Messages) Descriptor() ([]byte, []int)deprecated
- func (x *Messages) GetArchiveMessages() []*Message
- func (x *Messages) MarshalBinary() (data []byte, err error)
- func (*Messages) ProtoMessage()
- func (x *Messages) ProtoReflect() protoreflect.Message
- func (x *Messages) Reset()
- func (x *Messages) String() string
- func (x *Messages) UnmarshalBinary(data []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetEndId() string
- func (x *Metadata) GetEndTimestamp() string
- func (x *Metadata) GetStartId() string
- func (x *Metadata) GetStartTimestamp() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
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) GetAfterId ¶
func (*Filters) GetBeforeId ¶
func (*Filters) GetEnd ¶
func (x *Filters) GetEnd() *timestamppb.Timestamp
func (*Filters) GetStart ¶
func (x *Filters) GetStart() *timestamppb.Timestamp
func (*Filters) ProtoMessage ¶
func (*Filters) ProtoMessage()
func (*Filters) ProtoReflect ¶
func (x *Filters) ProtoReflect() protoreflect.Message
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) GetArchiveId ¶
func (*Message) GetFromJid ¶
func (*Message) GetMessage ¶
func (x *Message) GetMessage() *stravaganza.PBElement
func (*Message) GetStamp ¶
func (x *Message) GetStamp() *timestamppb.Timestamp
func (*Message) MarshalBinary ¶
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) UnmarshalBinary ¶
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) GetArchiveMessages ¶
func (*Messages) MarshalBinary ¶
MarshalBinary satisfies encoding.BinaryMarshaler interface.
func (*Messages) ProtoMessage ¶
func (*Messages) ProtoMessage()
func (*Messages) ProtoReflect ¶
func (x *Messages) ProtoReflect() protoreflect.Message
func (*Messages) UnmarshalBinary ¶
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) GetEndTimestamp ¶
func (*Metadata) GetStartId ¶
func (*Metadata) GetStartTimestamp ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.