import from khatru.
This commit is contained in:
17
wrapper.go
Normal file
17
wrapper.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user