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>
17 lines
478 B
Go
17 lines
478 B
Go
package storage
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/matrix-org/dendrite/internal"
|
|
"github.com/matrix-org/dendrite/pushserver/api"
|
|
)
|
|
|
|
type Database interface {
|
|
internal.PartitionStorer
|
|
CreatePusher(ctx context.Context, pusher api.Pusher, localpart string) error
|
|
GetPushers(ctx context.Context, localpart string) ([]api.Pusher, error)
|
|
RemovePusher(ctx context.Context, appId, pushkey, localpart string) error
|
|
RemovePushers(ctx context.Context, appId, pushkey string) error
|
|
}
|