signaller/backend.go

11 lines
388 B
Go
Raw Normal View History

2019-07-18 14:10:43 +00:00
package main
2019-07-18 14:21:54 +00:00
import "github.com/nxshock/signaller/matrix"
2019-07-18 14:10:43 +00:00
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)
}