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