Documentation
¶
Overview ¶
Package upload handles uploading local changes to the backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchCompletedHook ¶ added in v1.22.1
BatchCompletedHook is called after a batch is atomically completed in SQLite. Errors are logged and do not fail the upload cycle.
type Event ¶
type Event interface {
// contains filtered or unexported methods
}
Event is the interface for all upload events. Handlers can define their own event types that implement this interface.
type Option ¶ added in v1.22.1
type Option func(*uploader)
Option configures uploader behavior.
func WithBatchCompletedHook ¶ added in v1.22.1
func WithBatchCompletedHook(hook BatchCompletedHook) Option
WithBatchCompletedHook installs a callback invoked after each successful batch completion.
type RecoveredEvent ¶
RecoveredEvent is emitted when upload recovers from a stalled state.
type StalledEvent ¶
StalledEvent is emitted when upload is blocked on a failing entry.
type SyncingEvent ¶
type SyncingEvent struct {
ProcessedCount int
}
SyncingEvent is emitted when entries are being processed.
type TokenRefresher ¶
TokenRefresher provides access tokens for authentication.