Documentation ¶
Index ¶
- Variables
- func FederatedGet(url string, realHost string, ctx rcontext.RequestContext) (*http.Response, error)
- func GetServerApiUrl(hostname string) (string, string, error)
- func GetUserIdFromToken(ctx rcontext.RequestContext, serverName string, accessToken string, ...) (string, error)
- func IsUserAdmin(ctx rcontext.RequestContext, serverName string, accessToken string, ...) (bool, error)
- func Logout(ctx rcontext.RequestContext, serverName string, accessToken string, ...) error
- func LogoutAll(ctx rcontext.RequestContext, serverName string, accessToken string, ...) error
- type MediaListResponse
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 GetUserIdFromToken ¶
func IsUserAdmin ¶
Types ¶
type MediaListResponse ¶
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)
Click to show internal directories.
Click to hide internal directories.