dendrite/pushserver/storage/tables/interface.go
Piotr Kozimor 151d52ce23 Add Pushserver component with Pushers API
Co-authored-by: Tommie Gannert <tommie@gannert.se>
Co-authored-by: Dan Peleg <dan@globekeeper.com>
2021-11-19 12:58:38 +01:00

26 lines
621 B
Go

package tables
import (
"context"
"github.com/matrix-org/dendrite/pushserver/api"
"github.com/matrix-org/gomatrixserverlib"
)
type Pusher interface {
InsertPusher(
ctx context.Context, session_id int64,
pushkey string, pushkeyTS gomatrixserverlib.Timestamp, kind api.PusherKind,
appid, appdisplayname, devicedisplayname, profiletag, lang, data, localpart string,
) error
SelectPushers(
ctx context.Context, localpart string,
) ([]api.Pusher, error)
DeletePusher(
ctx context.Context, appid, pushkey, localpart string,
) error
DeletePushers(
ctx context.Context, appid, pushkey string,
) error
}