Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct { Model Title string `json:"title"` Description string `json:"description"` Password string `json:"-"` HasPassword bool `json:"hasPassword" sql:"-"` Permalink string `json:"permalink"` FileName string `json:"fileName"` FileSizeKB string `json:"fileSizeKB"` FileChecksumMD5 string `json:"fileChecksumMd5"` FileChecksumSHA1 string `json:"fileChecksumSha1"` FolderID int `json:"-"` FolderHashID string `json:"folderId" sql:"-"` }
func (*File) WithFileNameWithoutTimestamp ¶
func (*File) WithHasPassword ¶
func (*File) WithHashId ¶
type FilePassword ¶
type FilePassword struct {
Password string `json:"password"`
}
type Folder ¶
type Folder struct { Model Title string `json:"title"` Permalink string `json:"permalink"` ParentID int `json:"-"` ParentHashID string `sql:"-" json:"parentId"` }
func (*Folder) ToPath ¶
func (f *Folder) ToPath(index int) FolderPathElement
func (*Folder) WithHashId ¶
type FolderPathElement ¶
Click to show internal directories.
Click to hide internal directories.