# Functions
ASExclusive is an error returned when an application service tries to register an username that is outside of its registered namespace, or if a user attempts to register a username or room alias within an exclusive namespace.
AsTimestamp turns a time.Time into a millisecond posix timestamp.
BadAlias is an error when the client supplies a bad alias.
BadJSON is an error when the client supplies malformed JSON.
Forbidden is an error when the client tries to access a resource they are not allowed to access.
GuestAccessForbidden is an error which is returned when the client is forbidden from accessing a resource as a guest.
IncompatibleRoomVersion is an error which is returned when the client requests a room with a version that is unsupported.
InvalidParam is an error that is returned when a parameter has the wrong value or type.
InvalidSignature is an error which is returned when the client tries to upload invalid signatures.
InvalidUsername is an error returned when the client tries to register an invalid username.
LeaveServerNoticeError is an error returned when trying to reject an invite for a server notice room.
LimitExceeded is an error when the client tries to send events too quickly.
MissingParam is an error that is returned when a parameter is missing from a request.
MissingToken is an error when the client tries to access a resource which requires authentication without supplying credentials.
No description provided by the author
Creates a new UserID, returning an error if invalid.
Creates a new UserID, panicing if invalid.
NotFound is an error when the client tries to access an unknown resource.
NotJSON is an error when the client supplies something that is not JSON to a JSON endpoint.
NotTrusted is an error which is returned when the client asks the server to proxy a request (e.g.
ParseAndValidateServerName splits a ServerName into a host and port part, and checks that it is a valid server name according to the spec.
RoomInUse is an error returned when the client tries to make a room that already exists.
Create a new sender ID from a private room key.
Create a new sender ID from a user ID.
UnableToAuthoriseJoin is an error that is returned when a server can't determine whether to allow a restricted join or not.
Unknown is an unexpected error.
UnknownToken is an error when the client tries to access a resource which requires authentication and supplies an unrecognised token.
Unrecognized is an error when the server received a request at an unexpected endpoint.
UnsupportedRoomVersion is an error which is returned when the client requests a room with a version that is unsupported.
UserInUse is an error returned when the client tries to register an username that already exists.
WeakPassword is an error which is returned when the client tries to register using a weak password.
WrongBackupVersionError is an error returned by `PUT /room_keys/keys`.
# Constants
Ban is the string constant "ban".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Invite is the string constant "invite".
Join is the string constant "join".
Knock is the string constant "knock".
NOTSPEC: Restricted is the string constant "knock_restricted" (MSC3787) REVIEW: the MSC is merged though..
Leave is the string constant "leave".
MDeviceListUpdate https://matrix.org/docs/spec/server_server/latest#m-device-list-update-schema.
MDirectToDevice https://matrix.org/docs/spec/server_server/r0.1.3#send-to-device-messaging.
MPresence https://matrix.org/docs/spec/server_server/latest#m-presence-schema.
MReceipt https://matrix.org/docs/spec/server_server/r0.1.4#receipts.
MRoomAliases https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-aliases.
MRoomAvatar https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-avatar.
MRoomCanonicalAlias https://matrix.org/docs/spec/client_server/r0.6.0#m-room-canonical-alias.
MRoomCreate https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-create.
MRoomEncryption https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-encryption.
MRoomGuestAccess https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-guest-access.
MRoomHistoryVisibility https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-history-visibility.
MRoomJoinRules https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-join-rules.
MRoomMember https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-member.
MRoomMembership https://github.com/matrix-org/matrix-doc/blob/clokep/restricted-rooms/proposals/3083-restricted-rooms.md.
MRoomName https://matrix.org/docs/spec/client_server/r0.6.0#m-room-name.
MRoomPowerLevels https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-power-levels.
MRoomRedaction https://matrix.org/docs/spec/client_server/r0.2.0.html#id21.
MRoomThirdPartyInvite https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-third-party-invite.
MRoomTopic https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-topic.
MSpace https://spec.matrix.org/v1.7/client-server-api/#types.
MSpaceChild https://spec.matrix.org/v1.7/client-server-api/#mspacechild-relationship.
MSpaceParent https://spec.matrix.org/v1.7/client-server-api/#mspaceparent-relationships.
MTyping https://matrix.org/docs/spec/client_server/r0.3.0.html#m-typing.
NOTSPEC: Peek is the string constant "peek" (MSC2753, used as the label in the sync block).
Room creation preset enum used to create private rooms.
Room creation preset enum used to create public rooms.
Room creation preset enum used to create trusted private rooms.
Public is the string constant "public".
Restricted is the string constant "restricted".
WorldReadable is the string constant "world_readable".
# Structs
ErrRoomKeysVersion is an error returned by `PUT /room_keys/keys`.
No description provided by the author
InternalServerError.
LimitExceededError is a rate-limiting error.
MatrixError represents the "standard error response" in Matrix.
A RoomID identifies a matrix room as per the matrix specification https://spec.matrix.org/v1.6/appendices/#room-ids-and-event-ids.
A UserID identifies a matrix user as per the matrix specification.
# Type aliases
A Base64Bytes is a string of bytes (not base64 encoded) that are base64 encoded when used in JSON.
CreateSenderID is a function used to create the pseudoID private key.
No description provided by the author
TODO: Remove.
No description provided by the author
No description provided by the author
A ServerName is the name a matrix homeserver is identified by.
StoreSenderIDFromPublicID is a function to store the mxid_mapping after receiving a join event over federation.
A Timestamp is a millisecond posix timestamp.
No description provided by the author