Documentation ¶
Index ¶
- func ConfigDelete(id int) error
- func FileDelete(id int) error
- func FileDirExists(url string) bool
- func Open(path string) error
- func SessionDelete(id int) error
- func SessionDeleteAll() error
- func SubFileDelete(id int) error
- func UserDelete(id int) error
- type DbConfig
- type DbFile
- func FileCreate(o *DbFile) (*DbFile, error)
- func FileEnable(id int, enable bool) (*DbFile, error)
- func FileGet(id int) (*DbFile, error)
- func FileGetByRedirectUrl(url string) (*DbFile, error)
- func FileGetByUrl(url string) (*DbFile, error)
- func FileList() ([]DbFile, error)
- func FilePause(id int, pause bool) (*DbFile, error)
- func FileResetSubFile(id int) (*DbFile, error)
- func FileUpdate(id int, o *DbFile) (*DbFile, error)
- type DbSession
- type DbSubFile
- type DbUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDelete ¶
func FileDelete ¶
func FileDirExists ¶
func SessionDelete ¶
func SessionDeleteAll ¶
func SessionDeleteAll() error
func SubFileDelete ¶
func UserDelete ¶
Types ¶
type DbConfig ¶
type DbConfig struct { ID int `json:"id" storm:"id"` Hostname string `json:"hostname"` SecretPath string `json:"secret_path"` RedirectUrl string `json:"redirect_url"` CookieName string `json:"cookie_name"` CookieToken string `json:"cookie_token"` }
func ConfigCreate ¶
type DbFile ¶
type DbFile struct { ID int `json:"id" storm:"id,increment"` Uid int `json:"uid" storm:"index"` Name string `json:"name"` Filename string `json:"fname"` FileSize int64 `json:"fsize"` UrlPath string `json:"url_path" storm:"unique"` MimeType string `json:"mime_type"` OrigMimeType string `json:"orig_mime_type"` CreateTime int64 `json:"create_time" storm:"index"` IsEnabled bool `json:"is_enabled"` IsPaused bool `json:"is_paused"` RedirectPath string `json:"redirect_path" storm:"unique"` SubName string `json:"sub_name"` SubMimeType string `json:"sub_mime_type"` RefSubFile int `json:"ref_sub_file"` }
func FileCreate ¶
func FileGetByRedirectUrl ¶
func FileGetByUrl ¶
func FileResetSubFile ¶
type DbSession ¶
type DbSession struct { ID int `json:"id" storm:"id,increment"` Uid int `json:"uid" storm:"index"` Token string `json:"token" storm:"unique"` CreateTime int64 `json:"create_time"` }
func SessionCreate ¶
func SessionGet ¶
func SessionGetByToken ¶
type DbSubFile ¶
type DbSubFile struct { ID int `json:"id" storm:"id,increment"` Fid int `json:"fid"` Uid int `json:"uid"` Name string `json:"name"` Filename string `json:"fname"` FileSize int64 `json:"fsize"` CreateTime int64 `json:"create_time"` }
func SubFileCreate ¶
func SubFileGet ¶
type DbUser ¶
type DbUser struct { ID int `json:"id" storm:"id,increment"` Name string `json:"name"` SearchName string `json:"search_name" storm:"unique"` Password string `json:"password"` }
func UserCreate ¶
func UserGetByName ¶
Click to show internal directories.
Click to hide internal directories.