Documentation
¶
Index ¶
- type ChatReadPosition
- func (m *ChatReadPosition) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ChatReadPosition) CloneVT() *ChatReadPosition
- func (this *ChatReadPosition) EqualMessageVT(thatMsg any) bool
- func (this *ChatReadPosition) EqualVT(that *ChatReadPosition) bool
- func (x *ChatReadPosition) GetNextIndex() uint64
- func (x *ChatReadPosition) GetThreadPositions() map[string]*ChatThreadReadPosition
- func (x *ChatReadPosition) GetUpdatedAt() *timestamppb.Timestamp
- func (x *ChatReadPosition) MarshalJSON() ([]byte, error)
- func (x *ChatReadPosition) MarshalProtoJSON(s *json.MarshalState)
- func (x *ChatReadPosition) MarshalProtoText() string
- func (m *ChatReadPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ChatReadPosition) MarshalToVT(dAtA []byte) (int, error)
- func (m *ChatReadPosition) MarshalVT() (dAtA []byte, err error)
- func (*ChatReadPosition) ProtoMessage()
- func (x *ChatReadPosition) Reset()
- func (m *ChatReadPosition) SizeVT() (n int)
- func (x *ChatReadPosition) String() string
- func (x *ChatReadPosition) UnmarshalJSON(b []byte) error
- func (x *ChatReadPosition) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ChatReadPosition) UnmarshalVT(dAtA []byte) error
- type ChatReadPosition_ThreadPositionsEntry
- func (x *ChatReadPosition_ThreadPositionsEntry) GetKey() string
- func (x *ChatReadPosition_ThreadPositionsEntry) GetValue() *ChatThreadReadPosition
- func (x *ChatReadPosition_ThreadPositionsEntry) MarshalJSON() ([]byte, error)
- func (x *ChatReadPosition_ThreadPositionsEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *ChatReadPosition_ThreadPositionsEntry) MarshalProtoText() string
- func (*ChatReadPosition_ThreadPositionsEntry) ProtoMessage()
- func (x *ChatReadPosition_ThreadPositionsEntry) Reset()
- func (x *ChatReadPosition_ThreadPositionsEntry) String() string
- func (x *ChatReadPosition_ThreadPositionsEntry) UnmarshalJSON(b []byte) error
- func (x *ChatReadPosition_ThreadPositionsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type ChatThreadReadPosition
- func (m *ChatThreadReadPosition) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ChatThreadReadPosition) CloneVT() *ChatThreadReadPosition
- func (this *ChatThreadReadPosition) EqualMessageVT(thatMsg any) bool
- func (this *ChatThreadReadPosition) EqualVT(that *ChatThreadReadPosition) bool
- func (x *ChatThreadReadPosition) GetNextIndex() uint64
- func (x *ChatThreadReadPosition) GetUpdatedAt() *timestamppb.Timestamp
- func (x *ChatThreadReadPosition) MarshalJSON() ([]byte, error)
- func (x *ChatThreadReadPosition) MarshalProtoJSON(s *json.MarshalState)
- func (x *ChatThreadReadPosition) MarshalProtoText() string
- func (m *ChatThreadReadPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ChatThreadReadPosition) MarshalToVT(dAtA []byte) (int, error)
- func (m *ChatThreadReadPosition) MarshalVT() (dAtA []byte, err error)
- func (*ChatThreadReadPosition) ProtoMessage()
- func (x *ChatThreadReadPosition) Reset()
- func (m *ChatThreadReadPosition) SizeVT() (n int)
- func (x *ChatThreadReadPosition) String() string
- func (x *ChatThreadReadPosition) UnmarshalJSON(b []byte) error
- func (x *ChatThreadReadPosition) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ChatThreadReadPosition) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatReadPosition ¶
type ChatReadPosition struct {
// NextIndex is the first unread message index; zero means nothing has been read.
NextIndex uint64 `protobuf:"varint,1,opt,name=next_index,json=nextIndex,proto3" json:"nextIndex,omitempty"`
// UpdatedAt records when this position last advanced.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updatedAt,omitempty"`
// ThreadPositions are positions that cover only one timeline, keyed by thread
// root message key. The empty key is the main timeline: every message outside
// a thread. Each advances independently of NextIndex, which covers every
// timeline.
ThreadPositions map[string]*ChatThreadReadPosition `` /* 193-byte string literal not displayed */
// contains filtered or unexported fields
}
ChatReadPosition is a person's monotonic position in a channel's retained history.
func (*ChatReadPosition) CloneMessageVT ¶
func (m *ChatReadPosition) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ChatReadPosition) CloneVT ¶
func (m *ChatReadPosition) CloneVT() *ChatReadPosition
func (*ChatReadPosition) EqualMessageVT ¶
func (this *ChatReadPosition) EqualMessageVT(thatMsg any) bool
func (*ChatReadPosition) EqualVT ¶
func (this *ChatReadPosition) EqualVT(that *ChatReadPosition) bool
func (*ChatReadPosition) GetNextIndex ¶
func (x *ChatReadPosition) GetNextIndex() uint64
func (*ChatReadPosition) GetThreadPositions ¶
func (x *ChatReadPosition) GetThreadPositions() map[string]*ChatThreadReadPosition
func (*ChatReadPosition) GetUpdatedAt ¶
func (x *ChatReadPosition) GetUpdatedAt() *timestamppb.Timestamp
func (*ChatReadPosition) MarshalJSON ¶
func (x *ChatReadPosition) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ChatReadPosition to JSON.
func (*ChatReadPosition) MarshalProtoJSON ¶
func (x *ChatReadPosition) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ChatReadPosition message to JSON.
func (*ChatReadPosition) MarshalProtoText ¶
func (x *ChatReadPosition) MarshalProtoText() string
func (*ChatReadPosition) MarshalToSizedBufferVT ¶
func (m *ChatReadPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ChatReadPosition) MarshalToVT ¶
func (m *ChatReadPosition) MarshalToVT(dAtA []byte) (int, error)
func (*ChatReadPosition) MarshalVT ¶
func (m *ChatReadPosition) MarshalVT() (dAtA []byte, err error)
func (*ChatReadPosition) ProtoMessage ¶
func (*ChatReadPosition) ProtoMessage()
func (*ChatReadPosition) Reset ¶
func (x *ChatReadPosition) Reset()
func (*ChatReadPosition) SizeVT ¶
func (m *ChatReadPosition) SizeVT() (n int)
func (*ChatReadPosition) String ¶
func (x *ChatReadPosition) String() string
func (*ChatReadPosition) UnmarshalJSON ¶
func (x *ChatReadPosition) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ChatReadPosition from JSON.
func (*ChatReadPosition) UnmarshalProtoJSON ¶
func (x *ChatReadPosition) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ChatReadPosition message from JSON.
func (*ChatReadPosition) UnmarshalVT ¶
func (m *ChatReadPosition) UnmarshalVT(dAtA []byte) error
type ChatReadPosition_ThreadPositionsEntry ¶
type ChatReadPosition_ThreadPositionsEntry struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *ChatThreadReadPosition `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*ChatReadPosition_ThreadPositionsEntry) GetKey ¶
func (x *ChatReadPosition_ThreadPositionsEntry) GetKey() string
func (*ChatReadPosition_ThreadPositionsEntry) GetValue ¶
func (x *ChatReadPosition_ThreadPositionsEntry) GetValue() *ChatThreadReadPosition
func (*ChatReadPosition_ThreadPositionsEntry) MarshalJSON ¶
func (x *ChatReadPosition_ThreadPositionsEntry) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ChatReadPosition_ThreadPositionsEntry to JSON.
func (*ChatReadPosition_ThreadPositionsEntry) MarshalProtoJSON ¶
func (x *ChatReadPosition_ThreadPositionsEntry) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ChatReadPosition_ThreadPositionsEntry message to JSON.
func (*ChatReadPosition_ThreadPositionsEntry) MarshalProtoText ¶
func (x *ChatReadPosition_ThreadPositionsEntry) MarshalProtoText() string
func (*ChatReadPosition_ThreadPositionsEntry) ProtoMessage ¶
func (*ChatReadPosition_ThreadPositionsEntry) ProtoMessage()
func (*ChatReadPosition_ThreadPositionsEntry) Reset ¶
func (x *ChatReadPosition_ThreadPositionsEntry) Reset()
func (*ChatReadPosition_ThreadPositionsEntry) String ¶
func (x *ChatReadPosition_ThreadPositionsEntry) String() string
func (*ChatReadPosition_ThreadPositionsEntry) UnmarshalJSON ¶
func (x *ChatReadPosition_ThreadPositionsEntry) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ChatReadPosition_ThreadPositionsEntry from JSON.
func (*ChatReadPosition_ThreadPositionsEntry) UnmarshalProtoJSON ¶
func (x *ChatReadPosition_ThreadPositionsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ChatReadPosition_ThreadPositionsEntry message from JSON.
type ChatThreadReadPosition ¶
type ChatThreadReadPosition struct {
// NextIndex is the first unread channel message index within the timeline.
NextIndex uint64 `protobuf:"varint,1,opt,name=next_index,json=nextIndex,proto3" json:"nextIndex,omitempty"`
// UpdatedAt records when this position last advanced.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updatedAt,omitempty"`
// contains filtered or unexported fields
}
ChatThreadReadPosition is a person's monotonic position within one timeline.
func (*ChatThreadReadPosition) CloneMessageVT ¶
func (m *ChatThreadReadPosition) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ChatThreadReadPosition) CloneVT ¶
func (m *ChatThreadReadPosition) CloneVT() *ChatThreadReadPosition
func (*ChatThreadReadPosition) EqualMessageVT ¶
func (this *ChatThreadReadPosition) EqualMessageVT(thatMsg any) bool
func (*ChatThreadReadPosition) EqualVT ¶
func (this *ChatThreadReadPosition) EqualVT(that *ChatThreadReadPosition) bool
func (*ChatThreadReadPosition) GetNextIndex ¶
func (x *ChatThreadReadPosition) GetNextIndex() uint64
func (*ChatThreadReadPosition) GetUpdatedAt ¶
func (x *ChatThreadReadPosition) GetUpdatedAt() *timestamppb.Timestamp
func (*ChatThreadReadPosition) MarshalJSON ¶
func (x *ChatThreadReadPosition) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ChatThreadReadPosition to JSON.
func (*ChatThreadReadPosition) MarshalProtoJSON ¶
func (x *ChatThreadReadPosition) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ChatThreadReadPosition message to JSON.
func (*ChatThreadReadPosition) MarshalProtoText ¶
func (x *ChatThreadReadPosition) MarshalProtoText() string
func (*ChatThreadReadPosition) MarshalToSizedBufferVT ¶
func (m *ChatThreadReadPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ChatThreadReadPosition) MarshalToVT ¶
func (m *ChatThreadReadPosition) MarshalToVT(dAtA []byte) (int, error)
func (*ChatThreadReadPosition) MarshalVT ¶
func (m *ChatThreadReadPosition) MarshalVT() (dAtA []byte, err error)
func (*ChatThreadReadPosition) ProtoMessage ¶
func (*ChatThreadReadPosition) ProtoMessage()
func (*ChatThreadReadPosition) Reset ¶
func (x *ChatThreadReadPosition) Reset()
func (*ChatThreadReadPosition) SizeVT ¶
func (m *ChatThreadReadPosition) SizeVT() (n int)
func (*ChatThreadReadPosition) String ¶
func (x *ChatThreadReadPosition) String() string
func (*ChatThreadReadPosition) UnmarshalJSON ¶
func (x *ChatThreadReadPosition) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ChatThreadReadPosition from JSON.
func (*ChatThreadReadPosition) UnmarshalProtoJSON ¶
func (x *ChatThreadReadPosition) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ChatThreadReadPosition message from JSON.
func (*ChatThreadReadPosition) UnmarshalVT ¶
func (m *ChatThreadReadPosition) UnmarshalVT(dAtA []byte) error