nostr

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nostr

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

func New

func New(_ *http.Client, opts *config.Options) *Nostr

New returns a Nostr client.

func (*Nostr) Publish

func (n *Nostr) Publish(ctx context.Context, rdx reduxer.Reduxer, cols []wayback.Collect, args ...string) error

Publish publish text to the Nostr of given cols and args. A context should contain a `reduxer.Reduxer` via `publish.PubBundle` struct.

Jump to

Keyboard shortcuts

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