Rename snapshots.Manager => exporter.Exporter

This commit is contained in:
Tom Wiesing 2022-10-17 15:41:33 +02:00
parent 063f3f9b7d
commit 8d2855fdcb
No known key found for this signature in database
23 changed files with 105 additions and 100 deletions

View file

@ -4,5 +4,5 @@ import "github.com/FAU-CDI/wisski-distillery/internal/models"
// Snapshots returns the list of snapshots of this WissKI
func (wisski *WissKI) Snapshots() (snapshots []models.Export, err error) {
return wisski.SnapshotsLog.For(wisski.Slug)
return wisski.ExporterLog.For(wisski.Slug)
}

View file

@ -3,8 +3,9 @@ package wisski
import (
"github.com/FAU-CDI/wisski-distillery/internal/component"
"github.com/FAU-CDI/wisski-distillery/internal/component/exporter/logger"
"github.com/FAU-CDI/wisski-distillery/internal/component/meta"
"github.com/FAU-CDI/wisski-distillery/internal/component/snapshotslog"
"github.com/FAU-CDI/wisski-distillery/internal/component/sql"
"github.com/FAU-CDI/wisski-distillery/internal/component/triplestore"
"github.com/FAU-CDI/wisski-distillery/internal/models"
@ -24,7 +25,7 @@ type WissKI struct {
TS *triplestore.Triplestore
SQL *sql.SQL
SnapshotsLog *snapshotslog.SnapshotsLog
ExporterLog *logger.Logger
}
// Save saves this instance in the bookkeeping table