Documentation
¶
Index ¶
- func Addressable(ctx context.Context, evt relay.Event, collection *mongo.Collection, ...) error
- func Delete(ctx context.Context, evt relay.Event, dbClient *mongo.Client, dbName string, ...) error
- func Deprecated(ctx context.Context, evt relay.Event, client relay.ClientInterface) error
- func Regular(ctx context.Context, evt relay.Event, collection *mongo.Collection, ...) error
- func Replaceable(ctx context.Context, evt relay.Event, collection *mongo.Collection, ...) error
- func Unknown(ctx context.Context, evt relay.Event, collection *mongo.Collection, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Addressable ¶
func Addressable(ctx context.Context, evt relay.Event, collection *mongo.Collection, client relay.ClientInterface) error
Addressable handles parameterized replaceable events based on NIP-01 rules
func Delete ¶
func Delete(ctx context.Context, evt relay.Event, dbClient *mongo.Client, dbName string, client relay.ClientInterface) error
Delete processes kind 5 delete events and removes matching events from the database
func Deprecated ¶
Deprecated rejects kind 2 events since they are deprecated
func Regular ¶
func Regular(ctx context.Context, evt relay.Event, collection *mongo.Collection, client relay.ClientInterface) error
Regular stores regular events in the database
func Replaceable ¶
func Replaceable(ctx context.Context, evt relay.Event, collection *mongo.Collection, client relay.ClientInterface) error
Replaceable manages replaceable events by updating or inserting them
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.