Documentation ¶
Index ¶
- Variables
- func Initialize(driver, dsn, customTLSConfig string, dbDebug bool) error
- func ScheduleCleanup()
- type File
- type Folder
- type Metadater
- func (m *Metadater) GetFolders(storageID string, limit int, from string) ([]string, error)
- func (m *Metadater) GetModificationTime(storageID, objectPath string) (int64, error)
- func (m *Metadater) GetModificationTimes(storageID, objectPath string) (map[string]int64, error)
- func (m *Metadater) RemoveMetadata(storageID, objectPath string) error
- func (m *Metadater) SetModificationTime(storageID, objectPath string, mTime int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Handle *gorm.DB
)
Functions ¶
func Initialize ¶
Initialize initializes the database engine
func ScheduleCleanup ¶
func ScheduleCleanup()
ScheduleCleanup tries to periodically remove unreferenced folders
Types ¶
type File ¶
type Metadater ¶
type Metadater struct{}
func (*Metadater) GetFolders ¶
func (*Metadater) GetModificationTime ¶
func (*Metadater) GetModificationTimes ¶
func (*Metadater) RemoveMetadata ¶
Click to show internal directories.
Click to hide internal directories.