matrix

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGuestToken = errors.New("token belongs to a guest")
View Source
var ErrInvalidToken = errors.New("missing or invalid access token")

Functions

func FederatedGet

func FederatedGet(url string, realHost string, ctx rcontext.RequestContext) (*http.Response, error)

func GetServerApiUrl

func GetServerApiUrl(hostname string) (string, string, error)

func GetUserIdFromToken

func GetUserIdFromToken(ctx rcontext.RequestContext, serverName string, accessToken string, appserviceUserId string, ipAddr string) (string, error)

func IsUserAdmin

func IsUserAdmin(ctx rcontext.RequestContext, serverName string, accessToken string, ipAddr string) (bool, error)

func Logout added in v1.1.3

func Logout(ctx rcontext.RequestContext, serverName string, accessToken string, appserviceUserId string, ipAddr string) error

func LogoutAll added in v1.1.3

func LogoutAll(ctx rcontext.RequestContext, serverName string, accessToken string, appserviceUserId string, ipAddr string) error

Types

type MediaListResponse added in v1.3.0

type MediaListResponse struct {
	LocalMxcs  []string `json:"local"`
	RemoteMxcs []string `json:"remote"`
}

func ListMedia

func ListMedia(ctx rcontext.RequestContext, serverName string, accessToken string, roomId string, ipAddr string) (*MediaListResponse, error)

Jump to

Keyboard shortcuts

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