version

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRoomVersion

func DefaultRoomVersion() gomatrixserverlib.RoomVersion

DefaultRoomVersion contains the room version that will, by default, be used to create new rooms on this server.

func RoomVersion

RoomVersion returns information about a specific room version. An UnknownVersionError is returned if the version is not known to the server.

func RoomVersions

RoomVersions returns a map of all known room versions to this server.

func SupportedRoomVersion

SupportedRoomVersion returns information about a specific room version. An UnknownVersionError is returned if the version is not known to the server, or an UnsupportedVersionError is returned if the version is known but specifically marked as unsupported.

func SupportedRoomVersions

SupportedRoomVersions returns a map of descriptions for room versions that are supported by this homeserver.

Types

type UnknownVersionError

type UnknownVersionError struct {
	Version gomatrixserverlib.RoomVersion
}

UnknownVersionError is caused when the room version is not known.

func (UnknownVersionError) Error

func (e UnknownVersionError) Error() string

type UnsupportedVersionError

type UnsupportedVersionError struct {
	Version gomatrixserverlib.RoomVersion
}

UnsupportedVersionError is caused when the room version is specifically marked as unsupported.

func (UnsupportedVersionError) Error

func (e UnsupportedVersionError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL