💥 Add store
This commit is contained in:
parent
0e2d302804
commit
bdc625b57e
6 changed files with 127 additions and 6 deletions
|
|
@ -1,9 +1,9 @@
|
|||
package testmocks
|
||||
|
||||
import (
|
||||
"codeberg.org/danjones000/lenore/store"
|
||||
vocab "github.com/go-ap/activitypub"
|
||||
"github.com/go-ap/filters"
|
||||
proc "github.com/go-ap/processing"
|
||||
)
|
||||
|
||||
type st struct{}
|
||||
|
|
@ -33,6 +33,9 @@ func (s *st) RemoveFrom(col vocab.IRI, it vocab.Item) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func GetStore() proc.Store {
|
||||
func (s *st) Close() {
|
||||
}
|
||||
|
||||
func GetStore() store.Store {
|
||||
return &st{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue