package
0.0.0-20241025030232-2154053700bb
Repository: https://github.com/daodst/chat.git
Documentation: pkg.go.dev

# Functions

BuildEvent builds a Matrix event from the builder and QueryLatestEventsAndStateResponse provided.
InitialPowerLevelsContent returns the initial values for m.room.power_levels on room creation if they have not been specified.
QueryAndBuildEvent builds a Matrix event using the event builder and roomserver query API client provided.
RedactEvent redacts the given event and sets the unsigned field appropriately.

# Variables

ErrProfileNoExists is returned when trying to lookup a user's profile that doesn't exist locally.
ErrRoomNoExists is returned when trying to lookup the state of a room that doesn't exist.

# Structs

AccountData represents account data sent from the client API server to the sync API server.
AliasesContent is the event content for http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-aliases.
AvatarContent is the event content for http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-avatar.
AvatarURL is a struct containing only the URL to a user's avatar.
CanonicalAlias is the event content for https://matrix.org/docs/spec/client_server/r0.6.0#m-room-canonical-alias.
CanonicalAliasContent is the event content for http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-canonical-alias.
DisplayName is a struct containing only a user's display name.
GuestAccessContent is the event content for https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-guest-access.
HistoryVisibilityContent is the event content for http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-history-visibility.
ImageInfo implements the ImageInfo structure from http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-avatar.
NameContent is the event content for https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-name.
NotificationData contains statistics about notifications, sent from the Push Server to the Sync API server.
ProfileResponse is a struct containing all known user profile data.
No description provided by the author
TopicContent is the event content for https://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-topic.

# Type aliases

WeakBoolean is a type that will Unmarshal to true or false even if the encoded representation is "true"/1 or "false"/0, as well as whatever other forms are recognised by strconv.ParseBool.