nostr

package
v0.0.0-...-22aeabe Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestEvent

func CreateTestEvent(privkey string, text string, ipfscore ipfs.IPFSCore) error

func GenerateKeyPair

func GenerateKeyPair() (string, string, error)

Types

type Logger

type Logger struct {
}

func (*Logger) Errorf

func (l *Logger) Errorf(format string, v ...any)

func (*Logger) Infof

func (l *Logger) Infof(format string, v ...any)

func (*Logger) Warningf

func (l *Logger) Warningf(format string, v ...any)

type Relay

type Relay struct {
	Ipfs ipfs.IPFSCore
}

func (*Relay) Init

func (r *Relay) Init() error

func (*Relay) Name

func (r *Relay) Name() string

func (*Relay) OnInitialized

func (r *Relay) OnInitialized(s *relayer.Server)

type Storage

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

func (*Storage) SaveEvent

func (s *Storage) SaveEvent(evt *nostr.Event) error

Jump to

Keyboard shortcuts

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