component

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(t *testing.T) *nostr.Relay

func NewKeyPair

func NewKeyPair(t *testing.T) (PrivKey, PubKey)

func NewSignedEvent

func NewSignedEvent(t *testing.T, opts EventOptions) nostr.Event

Types

type Closer

type Closer func()

type EventOptions

type EventOptions struct {
	PrivKey   PrivKey
	CreatedAt time.Time
	Kind      int
	Tags      nostr.Tags
	Content   string
}

type PrivKey

type PrivKey string

func (PrivKey) String

func (priv PrivKey) String() string

type PubKey

type PubKey string

func (PubKey) String

func (priv PubKey) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL