Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendFunc ¶
BackendFunc fetches files from its backend and sends them on the sink.
Implementations must close the channel when they are done and return.
func SFTPBackend ¶
func SFTPBackend(client *sftp.Client, directory string) BackendFunc
SFTPBackend fetches files via SFTP.
type Handler ¶
type Handler struct {
// OnFile is invoked on any file encountered.
OnFile OnFileFunc
// OnSuccess is invoked once and only if no error occured.
OnSuccess Thunk
// OnCompletion is invoked once after all operations are complete and before OnSuccess.
OnCompletion Thunk
}
Handler stores callbacks for use in Digest.
type OnFileFunc ¶
OnFileFunc processes file.
Click to show internal directories.
Click to hide internal directories.