mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 09:43:10 -06:00
Co-authored-by: Tommie Gannert <tommie@gannert.se> Co-authored-by: Dan Peleg <dan@globekeeper.com>
26 lines
621 B
Go
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
|
|
}
|