Documentation ¶
Index ¶
- Variables
- type DirOrFileEntry
- type Handler
- func (h *Handler) DirectoryLsHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DirectoryMkdirHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DirectoryRmdirHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DirectoryStatHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ExportUserHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) FileDeleteHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) FileDownloadHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) FileReceiveHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) FileReceiveInfoHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) FileShareHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) FileStatHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) FileUploadHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserAvatarHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserContactHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserNameHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserSharingInboxHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserSharingOutboxHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserStatHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ImportUserHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) IsUserLoggedInHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) LogMiddleware(next http.Handler) http.Handler
- func (h *Handler) LoginMiddleware(next http.Handler) http.Handler
- func (h *Handler) PodCloseHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PodCreateHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PodDeleteHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PodListHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PodOpenHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PodStatHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PodSyncHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SaveUserAvatarHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SaveUserContactHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SaveUserNameHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UserDeleteHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UserLoginHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UserLogoutHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UserPresentHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UserSignupHandler(w http.ResponseWriter, r *http.Request)
- type ListFileResponse
- type LoginStatus
- type PodCreateResponse
- type PodListResponse
- type PodOpenResponse
- type PodStatResponse
- type Reference
- type SharingReference
- type UserExportResponse
- type UserPresentResponse
- type UserSignupResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidCookie = errors.New("invalid cookie")
)
Functions ¶
This section is empty.
Types ¶
type DirOrFileEntry ¶
type Handler ¶
func NewHandler ¶
func (*Handler) DirectoryLsHandler ¶
func (h *Handler) DirectoryLsHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) DirectoryMkdirHandler ¶
func (h *Handler) DirectoryMkdirHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) DirectoryRmdirHandler ¶
func (h *Handler) DirectoryRmdirHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) DirectoryStatHandler ¶
func (h *Handler) DirectoryStatHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) ExportUserHandler ¶
func (h *Handler) ExportUserHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) FileDeleteHandler ¶
func (h *Handler) FileDeleteHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) FileDownloadHandler ¶
func (h *Handler) FileDownloadHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) FileReceiveHandler ¶
func (h *Handler) FileReceiveHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) FileReceiveInfoHandler ¶
func (h *Handler) FileReceiveInfoHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) FileShareHandler ¶
func (h *Handler) FileShareHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) FileStatHandler ¶
func (h *Handler) FileStatHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) FileUploadHandler ¶
func (h *Handler) FileUploadHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) GetUserAvatarHandler ¶
func (h *Handler) GetUserAvatarHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) GetUserContactHandler ¶
func (h *Handler) GetUserContactHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) GetUserNameHandler ¶
func (h *Handler) GetUserNameHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) GetUserSharingInboxHandler ¶
func (h *Handler) GetUserSharingInboxHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) GetUserSharingOutboxHandler ¶
func (h *Handler) GetUserSharingOutboxHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) GetUserStatHandler ¶
func (h *Handler) GetUserStatHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) ImportUserHandler ¶
func (h *Handler) ImportUserHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) IsUserLoggedInHandler ¶
func (h *Handler) IsUserLoggedInHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) PodCloseHandler ¶
func (h *Handler) PodCloseHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) PodCreateHandler ¶
func (h *Handler) PodCreateHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) PodDeleteHandler ¶
func (h *Handler) PodDeleteHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) PodListHandler ¶
func (h *Handler) PodListHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) PodOpenHandler ¶
func (h *Handler) PodOpenHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) PodStatHandler ¶
func (h *Handler) PodStatHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) PodSyncHandler ¶
func (h *Handler) PodSyncHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) SaveUserAvatarHandler ¶
func (h *Handler) SaveUserAvatarHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) SaveUserContactHandler ¶
func (h *Handler) SaveUserContactHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) SaveUserNameHandler ¶
func (h *Handler) SaveUserNameHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) UserDeleteHandler ¶
func (h *Handler) UserDeleteHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) UserLoginHandler ¶
func (h *Handler) UserLoginHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) UserLogoutHandler ¶
func (h *Handler) UserLogoutHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) UserPresentHandler ¶
func (h *Handler) UserPresentHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) UserSignupHandler ¶
func (h *Handler) UserSignupHandler(w http.ResponseWriter, r *http.Request)
type ListFileResponse ¶
type ListFileResponse struct {
Entries []dir.DirOrFileEntry `json:"entries"`
}
type LoginStatus ¶
type LoginStatus struct {
LoggedIn bool `json:"loggedin"`
}
type PodCreateResponse ¶
type PodCreateResponse struct {
Reference string `json:"reference"`
}
type PodListResponse ¶
type PodListResponse struct {
Pods []string `json:"name"`
}
type PodOpenResponse ¶
type PodOpenResponse struct {
Reference string `json:"reference"`
}
type PodStatResponse ¶
type SharingReference ¶
type SharingReference struct {
Reference string `json:"sharing_reference"`
}
type UserExportResponse ¶
type UserPresentResponse ¶
type UserPresentResponse struct {
Present bool `json:"present"`
}
type UserSignupResponse ¶
Source Files ¶
- dir_ls.go
- dir_mkdir.go
- dir_rmdir.go
- dir_stat.go
- errors.go
- file_delete.go
- file_download.go
- file_share.go
- file_stat.go
- file_upload.go
- handler.go
- log_middleware.go
- login_middleware.go
- pod_close.go
- pod_delete.go
- pod_ls.go
- pod_new.go
- pod_open.go
- pod_stat.go
- pod_sync.go
- user_avatar.go
- user_contacts.go
- user_del.go
- user_export.go
- user_import.go
- user_islogin.go
- user_login.go
- user_logout.go
- user_name.go
- user_present.go
- user_share.go
- user_signup.go
- user_stat.go
Click to show internal directories.
Click to hide internal directories.