More stuff, add stuff, add todos
This commit is contained in:
parent
28c5f546fe
commit
f69480b6b4
12 changed files with 40 additions and 4 deletions
13
server/remoteServer/remoteServer.go
Normal file
13
server/remoteServer/remoteServer.go
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue