Versions in this module Expand all Collapse all v0 v0.14.0 Dec 18, 2024 Changes in this version + const EventFormatClient + const EventFormatFederation + func FromClientStateKey(roomID spec.RoomID, stateKey string, senderIDQuery spec.SenderIDForUser) (*string, error) + func GetUpdatedInviteRoomState(userIDForSender spec.UserIDForSender, inviteRoomState gjson.Result, ...) (spec.RawJSON, error) + type ClientEvent struct + Content spec.RawJSON + EventID string + OriginServerTS spec.Timestamp + Redacts string + RoomID string + Sender string + SenderKey spec.SenderID + StateKey *string + Type string + Unsigned spec.RawJSON + func ToClientEvent(se gomatrixserverlib.PDU, format ClientEventFormat, ...) (*ClientEvent, error) + func ToClientEventDefault(userIDQuery spec.UserIDForSender, event gomatrixserverlib.PDU) ClientEvent + func ToClientEvents(serverEvs []gomatrixserverlib.PDU, format ClientEventFormat, ...) []ClientEvent + type ClientEventFormat int + const FormatAll + const FormatSync + const FormatSyncFederation + type ClientFederationFields struct + AuthEvents []string + Depth int64 + Hashes spec.RawJSON + PrevEvents []string + Signatures spec.RawJSON + type EventFilter struct + Limit int + NotSenders *[]string + NotTypes *[]string + Senders *[]string + Types *[]string + func DefaultEventFilter() EventFilter + type Filter struct + AccountData EventFilter + EventFields []string + EventFormat string + Presence EventFilter + Room RoomFilter + func DefaultFilter() Filter + func (filter *Filter) Validate() error + type InviteRoomStateEvent struct + Content spec.RawJSON + SenderID string + StateKey *string + Type string + type PrevEventRef struct + PrevContent json.RawMessage + PrevSenderID string + ReplacesState string + type RoomEventFilter struct + ContainsURL *bool + IncludeRedundantMembers bool + LazyLoadMembers bool + Limit int + NotRooms *[]string + NotSenders *[]string + NotTypes *[]string + Rooms *[]string + Senders *[]string + Types *[]string + UnreadThreadNotifications bool + func DefaultRoomEventFilter() RoomEventFilter + type RoomFilter struct + AccountData RoomEventFilter + Ephemeral RoomEventFilter + IncludeLeave bool + NotRooms *[]string + Rooms *[]string + State StateFilter + Timeline RoomEventFilter + type StateFilter struct + ContainsURL *bool + IncludeRedundantMembers bool + LazyLoadMembers bool + Limit int + NotRooms *[]string + NotSenders *[]string + NotTypes *[]string + Rooms *[]string + Senders *[]string + Types *[]string + UnreadThreadNotifications bool + func DefaultStateFilter() StateFilter