2019-01-05 22:44:33 +00:00
|
|
|
package storage
|
|
|
|
|
|
|
|
import (
|
2023-06-15 01:08:09 +00:00
|
|
|
"github.com/gtsteffaniak/filebrowser/auth"
|
|
|
|
"github.com/gtsteffaniak/filebrowser/settings"
|
|
|
|
"github.com/gtsteffaniak/filebrowser/share"
|
|
|
|
"github.com/gtsteffaniak/filebrowser/users"
|
2019-01-05 22:44:33 +00:00
|
|
|
)
|
|
|
|
|
2020-05-31 23:12:36 +00:00
|
|
|
// Storage is a storage powered by a Backend which makes the necessary
|
2019-01-05 22:44:33 +00:00
|
|
|
// verifications when fetching and saving data to ensure consistency.
|
|
|
|
type Storage struct {
|
2021-03-02 11:00:18 +00:00
|
|
|
Users users.Store
|
2019-01-05 23:01:16 +00:00
|
|
|
Share *share.Storage
|
|
|
|
Auth *auth.Storage
|
2019-01-05 22:44:33 +00:00
|
|
|
Settings *settings.Storage
|
|
|
|
}
|