Documentation
¶
Overview ¶
Package nextcloud provides a high-level client for Nextcloud WebDAV operations, including chunked uploads that bypass proxy body-size limits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client wraps a gowebdav.Client with Nextcloud-specific operations.
func (*Client) SetVerbose ¶
SetVerbose enables or disables verbose logging.
type Config ¶
type Config struct {
ChunkSize int64 // Chunk size in bytes (default 10MB)
SkipExisting bool // Skip files that exist with same size
Verbose bool // Enable verbose logging
ProgressFunc func(info ProgressInfo) // Progress callback with detailed info
}
Config holds options for upload operations.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns sensible defaults for upload operations.
type ProgressInfo ¶
type ProgressInfo struct {
Filename string // Name of the file being uploaded
Current int64 // Bytes uploaded so far
Total int64 // Total file size in bytes
Percentage float64 // Upload progress as percentage (0.0 to 100.0)
ChunkIndex int // Current chunk number (0-based)
TotalChunks int // Total number of chunks
}
ProgressInfo contains detailed progress information for uploads.
Click to show internal directories.
Click to hide internal directories.