notifications: server implementation

This commit is contained in:
Jesse de Wit
2023-06-15 12:48:28 +02:00
parent 205d39d715
commit 4fc7887707
6 changed files with 413 additions and 0 deletions

10
notifications/store.go Normal file
View File

@@ -0,0 +1,10 @@
package notifications
import (
"context"
)
type Store interface {
Register(ctx context.Context, pubkey string, url string) error
GetRegistrations(ctx context.Context, pubkey string) ([]string, error)
}