Documentation ¶
Overview ¶
The API package is a the transport independent logic to perform the Matrix API functionalities from the specification. Any exported function in the module is intended to be used by any of the implemented transport protocols and only takes and produces json-serializable objects.
Index ¶
- func CreateRoom(user *s.User, req io.Reader, vars Vars, query Query) (interface{}, error)
- func GetAvatarURL(req_user *s.User, request io.Reader, vars Vars, q Query) (interface{}, error)
- func GetDisplayName(req_user *s.User, request io.Reader, vars Vars, q Query) (interface{}, error)
- func GetEvents(user *s.User, request io.Reader, vars Vars, query Query) (interface{}, error)
- func GetInitialSync(user *s.User, request io.Reader, vars Vars, query Query) (interface{}, error)
- func GetLoginFlows(request io.Reader, v Vars, q Query) (interface{}, error)
- func GetPresence(cur_user *s.User, request io.Reader, vars Vars, query Query) (interface{}, error)
- func JoinRoom(user *s.User, req io.Reader, vars Vars, query Query) (interface{}, error)
- func ListPublicRooms(user *s.User, req io.Reader, vars Vars, query Query) (interface{}, error)
- func LoginRequest(request io.Reader, v Vars, q Query) (interface{}, error)
- func RegistrationRequest(request io.Reader, v Vars, q Query) (interface{}, error)
- func UpdateAvatarURL(user *s.User, request io.Reader, vars Vars, q Query) (interface{}, error)
- func UpdateDisplayName(user *s.User, request io.Reader, vars Vars, q Query) (interface{}, error)
- func UpdatePresence(user *s.User, request io.Reader, vars Vars, query Query) (interface{}, error)
- type AuthEndpoint
- type Error
- type Query
- type SimpleEndpoint
- type Vars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRoom ¶
func GetAvatarURL ¶
func GetDisplayName ¶
func GetInitialSync ¶
func GetPresence ¶
func ListPublicRooms ¶
func LoginRequest ¶
Request login authentication for a user, an api.Error will be returned if the authentication did not succeed. Otherwise a proper response according to chosen login type should be returned.
func RegistrationRequest ¶
Request registration of a new user, an api.Error will be returned if the registration did not succeed. Otherwise a proper response according to chosen registration type should be returned.