mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-05 10:11:02 +00:00
11 lines
391 B
Go
11 lines
391 B
Go
|
package main
|
||
|
|
||
|
import "github.com/nxshock/go-lightning/matrix"
|
||
|
|
||
|
type Backend interface {
|
||
|
Register(username, password, device string) (token string, error *matrix.ApiError)
|
||
|
Login(username, password, device string) (token string, err *matrix.ApiError)
|
||
|
Logout(token string) *matrix.ApiError
|
||
|
Sync(token string, request matrix.SyncRequest) (response *matrix.SyncReply, err *matrix.ApiError)
|
||
|
}
|