summaryrefslogtreecommitdiff
path: root/internal/storage/storage_interface.go
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <saya.andy@posteo.com> 2025-09-03 22:22:44 +0700
committerGravatar SayaAndy <saya.andy@posteo.com> 2025-09-03 22:22:44 +0700
commit01e74276577b46dcebb8917f6d23ec150a70ad70 (patch)
treed56610b8d6dd99fac17122c463a7b663039db38b /internal/storage/storage_interface.go
parent007368ef290d935312a5cd2883b07cc53c38cea3 (diff)
downloadarticlator-01e74276577b46dcebb8917f6d23ec150a70ad70.tar.gz
articlator-01e74276577b46dcebb8917f6d23ec150a70ad70.zip
feat: new draft and prod mode
Diffstat (limited to 'internal/storage/storage_interface.go')
-rw-r--r--internal/storage/storage_interface.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/storage/storage_interface.go b/internal/storage/storage_interface.go
index 91eeedb..02e0790 100644
--- a/internal/storage/storage_interface.go
+++ b/internal/storage/storage_interface.go
@@ -11,9 +11,9 @@ type StorageClient interface {
Scan() (paths []string, err error)
GetReader(path string) (reader io.ReadCloser, sz int64, err error)
WriteMetadata(path string, metadata *frontmatter.Metadata) error
- FileHasChanged(path string) bool
+ CompareDraftAndProd(path string) (changed bool)
}
-var NewStorageClientMap = map[string]func(cfg *config.StorageConfig) (StorageClient, error){
+var NewStorageClientMap = map[string]func(*config.StorageConfig, *config.DraftModeConfig) (StorageClient, error){
"b2": NewB2StorageClient,
}