nostr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct{}

func (*Event) Sign

func (e *Event) Sign(event *nostr.Event, sk string) (*nostr.Event, error)

type ModuleInstance

type ModuleInstance struct {
	// contains filtered or unexported fields
}

func (*ModuleInstance) Exports

func (m *ModuleInstance) Exports() modules.Exports

type Nostr

type Nostr struct {
	// contains filtered or unexported fields
}

func (*Nostr) GeneratePrivateKey

func (n *Nostr) GeneratePrivateKey() string

func (*Nostr) GetPublicKey

func (n *Nostr) GetPublicKey(sk string) (string, error)

func (*Nostr) RelayConnect

func (n *Nostr) RelayConnect(url string) (*Relay, error)

type Relay

type Relay struct {
	// contains filtered or unexported fields
}

func (*Relay) Close

func (r *Relay) Close() error

func (*Relay) Publish

func (r *Relay) Publish(ev nostr.Event) (nostr.Status, error)

func (*Relay) QuerySync

func (r *Relay) QuerySync(filter nostr.Filter, opts ...nostr.SubscriptionOption) ([]*nostr.Event, error)

type RootModule

type RootModule struct{}

func (*RootModule) NewModuleInstance

func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance

Jump to

Keyboard shortcuts

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