💥 Add store
This commit is contained in:
parent
0e2d302804
commit
bdc625b57e
6 changed files with 127 additions and 6 deletions
8
app.go
8
app.go
|
|
@ -5,10 +5,10 @@ import (
|
|||
"fmt"
|
||||
|
||||
"codeberg.org/danjones000/lenore/config"
|
||||
"codeberg.org/danjones000/lenore/store"
|
||||
vocab "github.com/go-ap/activitypub"
|
||||
"github.com/go-ap/client"
|
||||
boxap "github.com/go-ap/fedbox/activitypub"
|
||||
proc "github.com/go-ap/processing"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
|
@ -16,11 +16,11 @@ type App struct {
|
|||
self vocab.Service
|
||||
user vocab.Person
|
||||
version string
|
||||
storage proc.Store
|
||||
storage store.Store
|
||||
client client.C
|
||||
}
|
||||
|
||||
func NewApp(ver string, conf config.Config, db proc.Store) (*App, error) {
|
||||
func NewApp(ver string, conf config.Config, db store.Store) (*App, error) {
|
||||
if conf.BaseURL == "" {
|
||||
return nil, errors.New("Missing BaseURL")
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ func (l *App) Environment() config.Env {
|
|||
return l.conf.Environment()
|
||||
}
|
||||
|
||||
func (l *App) Storage() proc.Store {
|
||||
func (l *App) Storage() store.Store {
|
||||
return l.storage
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue