More stuff, add stuff, add todos

This commit is contained in:
Melody Becker 2024-09-13 15:02:32 +02:00
parent 28c5f546fe
commit f69480b6b4
12 changed files with 40 additions and 4 deletions

View file

@ -0,0 +1,13 @@
package remotestorage
import "gitlab.com/mstarongitlab/linstrom/storage"
// Wrapper around db storage
// storage.Storage is for the db and cache access only,
// while this one wraps storage.Storage to also provide remote fetching of missing resources.
// So if an account doesn't exist in db or cache, this wrapper will attempt to fetch it
type RemoteStorage struct {
store *storage.Storage
}
// TODO: Implement just about everything storage has, but with remote fetching if storage fails