Documentation
¶
Index ¶
- Constants
- Variables
- func AboutController(w http.ResponseWriter, r *http.Request)
- func AuthController(w http.ResponseWriter, r *http.Request)
- func BashController(w http.ResponseWriter, r *http.Request)
- func CheckSession(w http.ResponseWriter, r *http.Request) bool
- func Compress(files []*os.File, dest string) ([]byte, error)
- func DelController(w http.ResponseWriter, r *http.Request)
- func DoZlibCompress(src []byte) []byte
- func DownloadController(w http.ResponseWriter, r *http.Request)
- func DownloadShareController(w http.ResponseWriter, r *http.Request)
- func EditController(w http.ResponseWriter, r *http.Request)
- func FileController(w http.ResponseWriter, r *http.Request)
- func FolderController(w http.ResponseWriter, r *http.Request)
- func HttpController(w http.ResponseWriter, r *http.Request, username string)
- func IndexController(w http.ResponseWriter, r *http.Request)
- func LoginController(w http.ResponseWriter, r *http.Request)
- func LogoutController(w http.ResponseWriter, r *http.Request)
- func PutController(w http.ResponseWriter, r *http.Request)
- func RegisterController(w http.ResponseWriter, r *http.Request)
- func SearchController(w http.ResponseWriter, r *http.Request)
- func ShareController(w http.ResponseWriter, r *http.Request)
- func UploadController(w http.ResponseWriter, r *http.Request)
- type CommonResponse
- type EditResponse
- type File
- type Folder
- type Msg
- type Readme
- type SearchResponse
Constants ¶
View Source
const ( MSG_NONE = 0 MSG_SUCCESS = 1 MSG_ERROR = 2 EXTENTION_NULL = 0 EXTENTION_EDIT = 1 HEADER_CONTENT_DISPOSITION = "Content-Disposition" USER_FILE = "USER" )
View Source
const ( VIEW_GRID = "grid" VIEW_TBL = "table" )
View Source
const HOME = "home/"
Variables ¶
View Source
var EDITABLE_TYPE = []string{"txt", "md", "markdown", "h", "c", "cpp", "c++", "go", "xml", "json", "java", "conf", "ini", "css", "js", "sh", "py", "log"}
View Source
var ROOT_PATH = api.AppConfig.String("http_file_path")
View Source
var SESSION_FILE api.Config
View Source
var TOKEN_INDEX_MAP = map[string]string{}
View Source
var TOKEN_MAP = map[string]string{}
Functions ¶
func AboutController ¶
func AboutController(w http.ResponseWriter, r *http.Request)
func AuthController ¶
func AuthController(w http.ResponseWriter, r *http.Request)
func BashController ¶
func BashController(w http.ResponseWriter, r *http.Request)
func CheckSession ¶
func CheckSession(w http.ResponseWriter, r *http.Request) bool
func DelController ¶
func DelController(w http.ResponseWriter, r *http.Request)
func DownloadController ¶
func DownloadController(w http.ResponseWriter, r *http.Request)
func DownloadShareController ¶
func DownloadShareController(w http.ResponseWriter, r *http.Request)
func EditController ¶
func EditController(w http.ResponseWriter, r *http.Request)
func FileController ¶
func FileController(w http.ResponseWriter, r *http.Request)
func FolderController ¶
func FolderController(w http.ResponseWriter, r *http.Request)
func HttpController ¶
func HttpController(w http.ResponseWriter, r *http.Request, username string)
func IndexController ¶
func IndexController(w http.ResponseWriter, r *http.Request)
func LoginController ¶
func LoginController(w http.ResponseWriter, r *http.Request)
func LogoutController ¶
func LogoutController(w http.ResponseWriter, r *http.Request)
func PutController ¶
func PutController(w http.ResponseWriter, r *http.Request)
func RegisterController ¶
func RegisterController(w http.ResponseWriter, r *http.Request)
func SearchController ¶
func SearchController(w http.ResponseWriter, r *http.Request)
func ShareController ¶
func ShareController(w http.ResponseWriter, r *http.Request)
func UploadController ¶
func UploadController(w http.ResponseWriter, r *http.Request)
Types ¶
type CommonResponse ¶
type EditResponse ¶
type SearchResponse ¶
Click to show internal directories.
Click to hide internal directories.