diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-01 19:17:57 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-01 19:17:57 +0300 |
commit | b49416ed808e9a9802506cb5e0543dbf3b0e3dcd (patch) | |
tree | 8d4a331f1e29af077a2236419d5cd67bb05b5daa /interface/matrix.go | |
parent | 986c84b7689e29c4bbe6b124bee3e24707e6d51a (diff) |
Refactoring
Diffstat (limited to 'interface/matrix.go')
-rw-r--r-- | interface/matrix.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/interface/matrix.go b/interface/matrix.go index 95122cc..40710ac 100644 --- a/interface/matrix.go +++ b/interface/matrix.go @@ -25,16 +25,21 @@ type MatrixContainer interface { Client() *gomatrix.Client InitClient() error Initialized() bool - Login(user, password string) error + Start() Stop() + + Login(user, password string) error + SendMessage(roomID, msgtype, message string) (string, error) SendMarkdownMessage(roomID, msgtype, message string) (string, error) SendTyping(roomID string, typing bool) JoinRoom(roomID string) (*rooms.Room, error) LeaveRoom(roomID string) error + GetHistory(roomID, prevBatch string, limit int) ([]gomatrix.Event, string, error) GetRoom(roomID string) *rooms.Room + Download(mxcURL string) ([]byte, string, string, error) GetCachePath(homeserver, fileID string) string } |