it never ends.

This commit is contained in:
fiatjaf
2025-04-16 02:59:47 -03:00
parent cb0dd45a32
commit 5b8954461f
53 changed files with 396 additions and 673 deletions

18
interfaces.go Normal file
View File

@@ -0,0 +1,18 @@
package nostr
import (
"context"
)
type Publisher interface {
Publish(context.Context, Event) error
}
type Querier interface {
QueryEvents(context.Context, Filter) (chan Event, error)
}
type QuerierPublisher interface {
Querier
Publisher
}