Files
lspd/notifications/store.go
yse 11f35cbab1 feat: remove webhook subcription by url (#194)
* feat: added webhook unsubscription
* test: adding unsubscribe tests
2024-02-29 09:59:09 +01:00

14 lines
342 B
Go

package notifications
import (
"context"
"time"
)
type Store interface {
Register(ctx context.Context, pubkey string, url string) error
GetRegistrations(ctx context.Context, pubkey string) ([]string, error)
Unsubscribe(ctx context.Context, pubkey string, url string) error
RemoveExpired(ctx context.Context, before time.Time) error
}