Documentation ¶
Index ¶
- func Download(cfg *config.Dendrite, rpcCli *common.RpcClient, ...) (io.Reader, int, http.Header, error)
- func GetAliasRoomID(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func GetAvatar(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func GetDisplayName(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func GetProfile(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func GetRoomState(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func GetUserInfo(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func MakeJoin(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func MakeLeave(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func RpcRequest(rpcClient *common.RpcClient, destination, topic string, request interface{}) ([]byte, error)
- func SendInvite(cfg *config.Dendrite, rpcCli *common.RpcClient, destination string, ...) error
- func SendJoin(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- func SendLeave(cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, ...) error
- type DownloadCB
- type DownloadReader
- type RpcResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAliasRoomID ¶
func GetAliasRoomID( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, req *external.GetDirectoryRoomAliasRequest, response *external.GetDirectoryRoomAliasResponse, ) error
func GetAvatar ¶
func GetAvatar( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, req *external.GetProfileRequest, response *external.GetAvatarURLResponse, ) error
func GetDisplayName ¶
func GetDisplayName( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, req *external.GetProfileRequest, response *external.GetDisplayNameResponse, ) error
func GetProfile ¶
func GetProfile( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, req *external.GetProfileRequest, response *external.GetProfileResponse, ) error
func GetRoomState ¶
func GetRoomState( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, req *external.GetFedRoomStateRequest, response *gomatrixserverlib.RespState, ) error
func GetUserInfo ¶
func GetUserInfo( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, req *external.GetUserInfoRequest, response *external.GetUserInfoResponse, ) error
func MakeJoin ¶
func MakeJoin( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, roomID, userID string, ver []string, response *gomatrixserverlib.RespMakeJoin, ) error
func MakeLeave ¶
func MakeLeave( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, roomID, userID string, response *gomatrixserverlib.RespMakeLeave, ) error
func RpcRequest ¶
func SendInvite ¶
func SendInvite( cfg *config.Dendrite, rpcCli *common.RpcClient, destination string, event gomatrixserverlib.Event, response *gomatrixserverlib.RespInvite, ) error
func SendJoin ¶
func SendJoin( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, roomID, eventID string, event gomatrixserverlib.Event, resp *gomatrixserverlib.RespSendJoin, ) error
func SendLeave ¶
func SendLeave( cfg *config.Dendrite, rpcClient *common.RpcClient, destination string, roomID, eventID string, event gomatrixserverlib.Event, resp *gomatrixserverlib.RespSendLeave, ) error
Types ¶
type DownloadCB ¶
type DownloadCB struct {
// contains filtered or unexported fields
}
func (*DownloadCB) Clean ¶
func (cb *DownloadCB) Clean()
func (*DownloadCB) GetCB ¶
func (cb *DownloadCB) GetCB() common.MsgHandlerWithContext
func (*DownloadCB) GetTopic ¶
func (cb *DownloadCB) GetTopic() string
type DownloadReader ¶
type DownloadReader struct {
// contains filtered or unexported fields
}
type RpcResponse ¶
type RpcResponse struct { Error string Payload jsoniter.RawMessage }
Click to show internal directories.
Click to hide internal directories.