Documentation ¶
Index ¶
- Variables
- type AuthenticateRequest
- type DownloadRequest
- type FileBlockRequest
- type FileInfo
- type FileInfoRequest
- type FileInfoResponse
- type FinishUploadRequest
- type IncomingRequestType
- type ListDirectoryResponse
- type PauseUploadRequest
- type RequestType
- type ServerInfoResponse
- type StatusResponse
- type UploadFileRequest
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownRequestTypes = map[RequestType]bool{ AuthenticateReq: true, DownloadReq: true, FileInfoReq: true, FinishUploadReq: true, ListDirectoryReq: true, PauseUploadReq: true, FileBlockReq: true, ServerInfoReq: true, UploadFileReq: true, ServerConnectRequestType: true, }
Functions ¶
This section is empty.
Types ¶
type AuthenticateRequest ¶
type DownloadRequest ¶
type FileBlockRequest ¶
type FileBlockRequest struct { Path string `json:"path"` Block []byte `json:"block"` ContentType string `json:"content_type"` ContentLength int64 `json:"content_length"` UploadOffset int64 `json:"upload_offset"` Checksum string `json:"checksum"` ChecksumAlgorithm string `json:"check_algorithm"` Version }
type FileInfo ¶
type FileInfo struct { Name string `json:"name"` IsDir bool `json:"is_dir"` Size int64 `json:"size"` Checksum string `json:"checksum"` ChecksumAlgorithm string `json:"checksum_algorithm"` UploadComplete bool `json:"upload_complete"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type FileInfoRequest ¶
type FileInfoResponse ¶
type FinishUploadRequest ¶
type IncomingRequestType ¶
type IncomingRequestType struct {
RequestType RequestType `json:"request_type"`
}
type ListDirectoryResponse ¶
type PauseUploadRequest ¶
type RequestType ¶
type RequestType int
const ( AuthenticateReq RequestType = iota DownloadReq FileInfoReq FinishUploadReq ListDirectoryReq PauseUploadReq FileBlockReq ServerInfoReq UploadFileReq ServerConnectRequestType )
type ServerInfoResponse ¶
type StatusResponse ¶
type UploadFileRequest ¶
Click to show internal directories.
Click to hide internal directories.