import from khatru.

This commit is contained in:
fiatjaf
2023-10-31 15:40:42 -03:00
commit 473d817cc6
29 changed files with 3269 additions and 0 deletions

17
wrapper.go Normal file
View File

@@ -0,0 +1,17 @@
package eventstore
import (
"context"
"github.com/nbd-wtf/go-nostr"
)
type Wrapper struct {
Storage
}
func (w Wrapper) InjectEvent(ctx context.Context, evt *nostr.Event) error {
w.SaveEvent(ctx, evt)
return nil
}