Help us shape the future of Go! Take the 2026 Go Developer Survey

spacewave_chat_state

package
v0.57.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 (*ChatReadPosition_ThreadPositionsEntry) GetValue

func (*ChatReadPosition_ThreadPositionsEntry) MarshalJSON

func (x *ChatReadPosition_ThreadPositionsEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ChatReadPosition_ThreadPositionsEntry to JSON.

func (*ChatReadPosition_ThreadPositionsEntry) MarshalProtoJSON

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 (*ChatReadPosition_ThreadPositionsEntry) 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 (*ChatThreadReadPosition) CloneVT

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

Jump to

Keyboard shortcuts

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