Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
Dir is a object to access a specific directory
func (*Dir) HasPermission ¶
HasPermission used to check current user whether have permission to access directory
func (*Dir) SetPermission ¶
func (dir *Dir) SetPermission(permission *roles.Permission) (err error)
SetPermission used to set a Permission to directory
type File ¶
File is a object to access a specific file
func (*File) HasPermission ¶
HasPermission used to check current user whether have permission to access file
func (*File) SetPermission ¶
func (f *File) SetPermission(permission *roles.Permission) (err error)
SetPermission used to set a Permission to file
type Filebox ¶
type Filebox struct { BaseDir string Router *xroute.Mux Auth admin.Auth Admin *admin.Admin // contains filtered or unexported fields }
Filebox is a based object contains download folder path and admin.Auth used to get current user
func (*Filebox) AccessFile ¶
AccessFile will return a specific File object
Click to show internal directories.
Click to hide internal directories.