Discover Packages
github.com/ihexxa/quickshare
src
db
package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Mar 5, 2022
License: LGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
SchemaV2 = "v2"
UsersNs = "users"
InfoNs = "sharing"
ShareIDNs = "sharingKey"
)
type FileInfo struct {
IsDir bool `json:"isDir"`
Shared bool `json:"shared"`
ShareID string `json:"shareID"`
Sha1 string `json:"sha1"`
Size int64 `json:"size"`
}
type Quota struct {
SpaceLimit int64 `json:"spaceLimit,string"`
UploadSpeedLimit int `json:"uploadSpeedLimit"`
DownloadSpeedLimit int `json:"downloadSpeedLimit"`
}
type UploadInfo struct {
RealFilePath string `json:"realFilePath"`
Size int64 `json:"size"`
Uploaded int64 `json:"uploaded"`
}
type User struct {
ID uint64 `json:"id,string"`
Name string `json:"name"`
Pwd string `json:"pwd"`
Role string `json:"role"`
UsedSpace int64 `json:"usedSpace,string"`
Quota *Quota `json:"quota"`
Preferences *Preferences `json:"preferences"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.