Documentation ¶
Index ¶
- func CancelSub(ctx context.Context, t *testing.T, subID messages.SubscriptionID, ...)
- func ListenForEventsOnSub(ctx context.Context, t *testing.T, conn *websocket.Conn, ...) <-chan event.Event
- func NewConnection(t *testing.T) *nostr.Relay
- func NewKeyPair(t *testing.T) (PrivKey, PubKey)
- func NewSignedEvent(t *testing.T, opts EventOptions) nostr.Event
- func Publish(ctx context.Context, t *testing.T, e event.Event, conn *websocket.Conn)
- func ReadEvent(ctx context.Context, t *testing.T, conn *websocket.Conn) (messages.SubscriptionID, event.Event, error)
- func RequestSub(ctx context.Context, t *testing.T, conn *websocket.Conn, ...) messages.SubscriptionID
- func ToEvent(ne nostr.Event) event.Event
- type Closer
- type EventOptions
- type PrivKey
- type PubKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenForEventsOnSub ¶
func NewSignedEvent ¶
func NewSignedEvent(t *testing.T, opts EventOptions) nostr.Event
func RequestSub ¶
Types ¶
type EventOptions ¶
Click to show internal directories.
Click to hide internal directories.