Versions in this module Expand all Collapse all v0 v0.14.1 Jan 16, 2025 v0.14.0 Dec 18, 2024 Changes in this version + var ErrMalformedSyncToken = errors.New("malformed sync token") + type ClientEvents struct + Events []synctypes.ClientEvent + type DeviceLists struct + Changed []string + Left []string + type IgnoredUsers struct + List map[string]interface{} + type InviteResponse struct + InviteState struct{ ... } + func NewInviteResponse(ctx context.Context, rsAPI api.QuerySenderIDAPI, event *types.HeaderedEvent, ...) (*InviteResponse, error) + type JoinResponse struct + AccountData *ClientEvents + Ephemeral *ClientEvents + State *ClientEvents + Summary *Summary + Timeline *Timeline + func NewJoinResponse() *JoinResponse + func (jr JoinResponse) MarshalJSON() ([]byte, error) + type LeaveResponse struct + State *ClientEvents + Timeline *Timeline + func NewLeaveResponse() *LeaveResponse + func (lr LeaveResponse) MarshalJSON() ([]byte, error) + type OutputReceiptEvent struct + EventID string + RoomID string + Timestamp spec.Timestamp + Type string + UserID string + type OutputSendToDeviceEvent struct + DeviceID string + UserID string + type Peek struct + Deleted bool + New bool + RoomID string + type PeekingDevice struct + DeviceID string + UserID string + type Presence uint8 + const PresenceOffline + const PresenceOnline + const PresenceUnavailable + const PresenceUnknown + func PresenceFromString(input string) (Presence, bool) + func (p Presence) String() string + type PresenceClientResponse struct + CurrentlyActive *bool + LastActiveAgo int64 + Presence string + StatusMsg *string + type PresenceInternal struct + ClientFields PresenceClientResponse + LastActiveTS spec.Timestamp + Presence Presence + StreamPos StreamPosition + UserID string + func (p *PresenceInternal) CurrentlyActive() bool + func (p *PresenceInternal) LastActiveAgo() int64 + func (p1 *PresenceInternal) Equals(p2 *PresenceInternal) bool + type Range struct + Backwards bool + From StreamPosition + To StreamPosition + func (r *Range) High() StreamPosition + func (r *Range) Low() StreamPosition + type RecentEvents struct + Events []StreamEvent + Limited bool + type RelationEntry struct + EventID string + Position StreamPosition + type Response struct + AccountData *ClientEvents + DeviceLists *DeviceLists + DeviceListsOTKCount map[string]int + DeviceListsUnusedFallbackAlgorithms []string + NextBatch StreamingToken + Presence *ClientEvents + Rooms *RoomsResponse + ToDevice *ToDeviceResponse + func NewResponse() *Response + func (r *Response) HasUpdates() bool + func (r *Response) IsEmpty() bool + func (r Response) MarshalJSON() ([]byte, error) + type RoomsResponse struct + Invite map[string]*InviteResponse + Join map[string]*JoinResponse + Leave map[string]*LeaveResponse + Peek map[string]*JoinResponse + type SendToDeviceEvent struct + DeviceID string + ID StreamPosition + UserID string + type StateDelta struct + Membership string + MembershipPos StreamPosition + NewlyJoined bool + RoomID string + StateEvents []*types.HeaderedEvent + type StreamEvent struct + ExcludeFromSync bool + StreamPosition StreamPosition + TransactionID *api.TransactionID + type StreamPosition int64 + func NewStreamPositionFromString(s string) (StreamPosition, error) + type StreamingToken struct + AccountDataPosition StreamPosition + DeviceListPosition StreamPosition + InvitePosition StreamPosition + NotificationDataPosition StreamPosition + PDUPosition StreamPosition + PresencePosition StreamPosition + ReceiptPosition StreamPosition + SendToDevicePosition StreamPosition + TypingPosition StreamPosition + func NewStreamTokenFromString(tok string) (token StreamingToken, err error) + func (s *StreamingToken) UnmarshalText(text []byte) (err error) + func (s StreamingToken) MarshalText() ([]byte, error) + func (t *StreamingToken) ApplyUpdates(other StreamingToken) + func (t *StreamingToken) IsAfter(other StreamingToken) bool + func (t *StreamingToken) IsEmpty() bool + func (t *StreamingToken) WithUpdates(other StreamingToken) StreamingToken + func (t StreamingToken) String() string + type Summary struct + Heroes []string + InvitedMemberCount *int + JoinedMemberCount *int + type SyncRequest struct + Context context.Context + Device *userapi.Device + Filter synctypes.Filter + IgnoredUsers IgnoredUsers + Log *logrus.Entry + MembershipChanges map[string]struct{} + Response *Response + Rooms map[string]string + Since StreamingToken + Timeout time.Duration + WantFullState bool + func (r *SyncRequest) IsRoomPresent(roomID string) bool + type SyncTokenType string + const SyncTokenTypeStream + const SyncTokenTypeTopology + type Timeline struct + Events []synctypes.ClientEvent + Limited bool + PrevBatch *TopologyToken + type ToDeviceResponse struct + Events []gomatrixserverlib.SendToDeviceEvent + type TopologyToken struct + Depth StreamPosition + PDUPosition StreamPosition + func NewTopologyTokenFromString(tok string) (token TopologyToken, err error) + func (t *TopologyToken) Decrement() + func (t *TopologyToken) StreamToken() StreamingToken + func (t *TopologyToken) UnmarshalText(text []byte) (err error) + func (t TopologyToken) MarshalText() ([]byte, error) + func (t TopologyToken) String() string + type UnreadNotifications struct + HighlightCount int + NotificationCount int