models.go raw

   1  package models
   2  
   3  import (
   4  	"context"
   5  
   6  	"github.com/getAlby/go-nostr"
   7  )
   8  
   9  type SimplePool interface {
  10  	PublishMany(ctx context.Context, relayUrls []string, event nostr.Event) chan nostr.PublishResult
  11  	QuerySingle(
  12  		ctx context.Context,
  13  		urls []string,
  14  		filter nostr.Filter,
  15  		opts ...nostr.SubscriptionOption,
  16  	) *nostr.RelayEvent
  17  }
  18