Support for multiple storages in PublishedRepository. #15

This commit is contained in:
Andrey Smirnov
2014-07-21 17:19:13 +04:00
parent 27a5578d30
commit 6d026afc69
3 changed files with 205 additions and 94 deletions
+6
View File
@@ -47,6 +47,12 @@ type LocalPublishedStorage interface {
PublicPath() string
}
// PublishedStorageProvider is a thing that returns PublishedStorage by name
type PublishedStorageProvider interface {
// GetPublishedStorage returns PublishedStorage by name
GetPublishedStorage(name string) PublishedStorage
}
// Progress is a progress displaying entity, it allows progress bars & simple prints
type Progress interface {
// Writer interface to support progress bar ticking