eventStore

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addressable

func Addressable(ctx context.Context, evt nostr.Event, collection *mongo.Collection, client nostr.ClientInterface) error

Addressable handles parameterized replaceable events based on NIP-01 rules

func Delete

func Delete(ctx context.Context, evt nostr.Event, dbClient *mongo.Client, dbName string, client nostr.ClientInterface) error

Delete processes kind 5 delete events and removes matching events from the database

func Deprecated

func Deprecated(ctx context.Context, evt nostr.Event, client nostr.ClientInterface) error

Deprecated rejects kind 2 events since they are deprecated

func Regular

func Regular(ctx context.Context, evt nostr.Event, collection *mongo.Collection, client nostr.ClientInterface) error

Regular stores regular events in the database

func Replaceable

func Replaceable(ctx context.Context, evt nostr.Event, collection *mongo.Collection, client nostr.ClientInterface) error

Replaceable manages replaceable events by updating or inserting them

func Unknown

func Unknown(ctx context.Context, evt nostr.Event, collection *mongo.Collection, client nostr.ClientInterface) error

Unknown rejects events with unknown kinds

Types

This section is empty.

Jump to

Keyboard shortcuts

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