Documentation ¶
Index ¶
- type DownloadFileRequest
- type FileInfo
- type ListFilesResponse
- type LoginUserRequest
- type LoginUserResponse
- type LogoutRequest
- type LogoutResponse
- type RefreshTokenRequest
- type RefreshTokenResponse
- type RegisterUserRequest
- type RegisterUserResponse
- type RemoveFileRequest
- type RemoveFileResponse
- type UploadFileRequest
- type UploadFileResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadFileRequest ¶
type DownloadFileRequest struct {
FilePath string `json:"filePath"`
}
type ListFilesResponse ¶
type ListFilesResponse struct {
Files []FileInfo `json:"files"`
}
type LoginUserRequest ¶
type LoginUserResponse ¶
type LogoutRequest ¶
type LogoutRequest struct {
AccessToken string `json:"accessToken"`
}
type LogoutResponse ¶
type LogoutResponse struct {
Success bool `json:"success"`
}
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
RefreshToken string `json:"refreshToken"`
}
type RefreshTokenResponse ¶
type RefreshTokenResponse struct {
AccessToken string `json:"accessToken"`
}
type RegisterUserRequest ¶
type RegisterUserResponse ¶
type RegisterUserResponse struct {
Success bool `json:"success"`
}
type RemoveFileRequest ¶
type RemoveFileRequest struct {
FilePath string `json:"filePath"`
}
type RemoveFileResponse ¶
type RemoveFileResponse struct {
Success bool `json:"success"`
}
type UploadFileRequest ¶
type UploadFileRequest struct { FilePath string `json:"filePath"` File multipart.File `json:"file"` }
func NewUploadFileRequestFromHTTPForm ¶
func NewUploadFileRequestFromHTTPForm(req *http.Request) (*UploadFileRequest, error)
type UploadFileResponse ¶
type UploadFileResponse struct {
Success bool `json:"success"`
}
Click to show internal directories.
Click to hide internal directories.