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 + const EmptyStateKeyNID + const MRoomCreateNID + const MRoomHistoryVisibilityNID + const MRoomJoinRulesNID + const MRoomMemberNID + const MRoomPowerLevelsNID + const MRoomRedactionNID + const MRoomThirdPartyInviteNID + var ErrorInvalidRoomInfo = fmt.Errorf("room info is invalid") + func NewEventJSONsFromHeaderedEvents(hes []*HeaderedEvent) gomatrixserverlib.EventJSONs + type DeviceOrServerName struct + func NewDeviceNotServerName(device userapi.Device) DeviceOrServerName + func NewServerNameNotDevice(serverName spec.ServerName) DeviceOrServerName + func (s *DeviceOrServerName) Device() *userapi.Device + func (s *DeviceOrServerName) ServerName() *spec.ServerName + type Event struct + EventNID EventNID + Rejected bool + type EventMetadata struct + EventNID EventNID + RoomNID RoomNID + type EventNID int64 + type EventNIDs []EventNID + func (a EventNIDs) Hash() []byte + func (a EventNIDs) Len() int + func (a EventNIDs) Less(i, j int) bool + func (a EventNIDs) Swap(i, j int) + type EventStateKeyNID int64 + type EventTypeNID int64 + type HeaderedEvent struct + StateKeyResolved *string + UserID spec.UserID + Visibility gomatrixserverlib.HistoryVisibility + func (h *HeaderedEvent) CacheCost() int + func (h *HeaderedEvent) MarshalJSON() ([]byte, error) + func (j *HeaderedEvent) UnmarshalJSON(data []byte) error + type MissingEventError string + func (e MissingEventError) Error() string + type MissingStateError string + func (e MissingStateError) Error() string + type RejectedError string + func (e RejectedError) Error() string + type RoomInfo struct + RoomNID RoomNID + RoomVersion gomatrixserverlib.RoomVersion + func (r *RoomInfo) CopyFrom(r2 *RoomInfo) + func (r *RoomInfo) IsStub() bool + func (r *RoomInfo) SetIsStub(isStub bool) + func (r *RoomInfo) SetStateSnapshotNID(nid StateSnapshotNID) + func (r *RoomInfo) StateSnapshotNID() StateSnapshotNID + type RoomNID int64 + type StateAtEvent struct + BeforeStateSnapshotNID StateSnapshotNID + IsRejected bool + func (s StateAtEvent) IsStateEvent() bool + type StateAtEventAndReference struct + EventID string + type StateAtEventAndReferences []StateAtEventAndReference + func (s StateAtEventAndReferences) EventIDs() string + func (s StateAtEventAndReferences) Len() int + func (s StateAtEventAndReferences) Less(a, b int) bool + func (s StateAtEventAndReferences) Swap(a, b int) + type StateBlockNID int64 + type StateBlockNIDList struct + StateBlockNIDs []StateBlockNID + StateSnapshotNID StateSnapshotNID + type StateBlockNIDs []StateBlockNID + func (a StateBlockNIDs) Hash() []byte + func (a StateBlockNIDs) Len() int + func (a StateBlockNIDs) Less(i, j int) bool + func (a StateBlockNIDs) Swap(i, j int) + type StateEntries []StateEntry + func (a StateEntries) Len() int + func (a StateEntries) Less(i, j int) bool + func (a StateEntries) Swap(i, j int) + type StateEntry struct + EventNID EventNID + func DeduplicateStateEntries(a []StateEntry) []StateEntry + func (a StateEntry) LessThan(b StateEntry) bool + type StateEntryList struct + StateBlockNID StateBlockNID + StateEntries []StateEntry + type StateKeyTuple struct + EventStateKeyNID EventStateKeyNID + EventTypeNID EventTypeNID + func (a StateKeyTuple) IsCreate() bool + func (a StateKeyTuple) LessThan(b StateKeyTuple) bool + type StateKeyTupleSorter []StateKeyTuple + func (s StateKeyTupleSorter) Len() int + func (s StateKeyTupleSorter) Less(i, j int) bool + func (s StateKeyTupleSorter) Swap(i, j int) + func (s StateKeyTupleSorter) TypesAndStateKeysAsArrays() (eventTypeNIDs []int64, eventStateKeyNIDs []int64) + type StateSnapshotNID int64 + type UserRoomKeyPair struct + EventStateKeyNID EventStateKeyNID + RoomNID RoomNID