mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
17 lines
333 B
Go
17 lines
333 B
Go
package models
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/getAlby/go-nostr"
|
|
)
|
|
|
|
type SimplePool interface {
|
|
PublishMany(ctx context.Context, relayUrls []string, event nostr.Event) chan nostr.PublishResult
|
|
QuerySingle(
|
|
ctx context.Context,
|
|
urls []string,
|
|
filter nostr.Filter,
|
|
opts ...nostr.SubscriptionOption,
|
|
) *nostr.RelayEvent
|
|
}
|