2024-09-12 06:56:57 +00:00
|
|
|
package remotestorage
|
|
|
|
|
2024-12-18 14:24:56 +00:00
|
|
|
import "git.mstar.dev/mstar/linstrom/storage"
|
2024-09-12 06:56:57 +00:00
|
|
|
|
|
|
|
// 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
|