Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2021 Changes in this version + func ClientLogout(ctx context.Context, accessToken string) error + func ParseErrorResponse(ctx context.Context, body []byte) *errors.MatrixAPIErrorResponse + type AdminCreateUserResponse struct + AccessToken string + DeviceID string + HomeServer string + UserID string + func AdminCreateUser(ctx context.Context, entry app.UserEntry, accessToken string) (*AdminCreateUserResponse, error) + type AdminGetNonceResponse struct + Nonce string + type AdminJoinRoomResponse struct + RoomID string + func AdminJoinUserToRoom(ctx context.Context, userID, roomID, accessToken string) (*AdminJoinRoomResponse, error) + type AdminListRoomResponse struct + CanonicalAlias string + Creator string + JoinRules string + JoinedLocalMembers int + JoinedMembers int + Name string + Public bool + RoomID string + func AdminGetRoom(ctx context.Context, name, accessToken string) (*AdminListRoomResponse, error) + func AdminListRooms(ctx context.Context, filter, accessToken string) ([]AdminListRoomResponse, error) + type AdminListRoomsResponse struct + NextBatch *int + Offset int + Rooms []AdminListRoomResponse + TotalRooms int + type AdminListUserResponse struct + Admin int + CreationTimestamp uint64 + Deactivated int + DisplayName string + Name string + PasswordHash string + ShadowBanned bool + func AdminGetUser(ctx context.Context, name, accessToken string) (*AdminListUserResponse, error) + func AdminListUsers(ctx context.Context, filter, accessToken string) ([]AdminListUserResponse, error) + type AdminListUsersResponse struct + NextToken *string + Total int + Users []AdminListUserResponse + type AdminLoginAsUserResponse struct + AccessToken string + func AdminLoginAsUser(ctx context.Context, userID, accessToken string) (*AdminLoginAsUserResponse, error) + type ClientCreatePublicRoomResponse struct + RoomID string + func ClientCreatePublicRoom(ctx context.Context, name string, accessToken string) (*ClientCreatePublicRoomResponse, error) + type ClientJoinRoomResponse struct + RoomID string + func ClientJoinRoom(ctx context.Context, roomID, accessToken string) (*ClientJoinRoomResponse, error) + type ClientListPublicRoomResponse struct + Aliases []string + AvatarURL string + CanonicalAlias string + GuestCanJoin bool + Name string + NumJoinedMembers int + RoomID string + Topic string + WorldReadable bool + func ClientGetPublicRoom(ctx context.Context, name, accessToken string) (*ClientListPublicRoomResponse, error) + func ClientListPublicRooms(ctx context.Context, filter, accessToken string) ([]ClientListPublicRoomResponse, error) + type ClientListPublicRoomsResponse struct + NextBatch *string + PrevBatch *string + Rooms []ClientListPublicRoomResponse + TotalRoomCountEstimate int + type ClientLoginResponse struct + AccessToken string + HomeServer string + UserID string + func ClientPasswordLogin(ctx context.Context, username, password string) (*ClientLoginResponse, error) + type ClientPostToRoomResponse struct + EventID string + func ClientPostFileToRoom(ctx context.Context, roomID, url, filename, mimeType string, size int64, ...) (*ClientPostToRoomResponse, error) + func ClientPostTextMessageToRoom(ctx context.Context, roomID, message, accessToken string) (*ClientPostToRoomResponse, error) + type ServerVersionResponse struct + PythonVersion string + ServerVersion string + func GetServerVersion(ctx context.Context) (*ServerVersionResponse, error) + type UploadMediaResponse struct + ContentURI string + func UploadMedia(ctx context.Context, contentType, filename, accessToken string, ...) (*UploadMediaResponse, error)