Documentation
¶
Index ¶
- func Chown(filepath string, stat os.FileInfo) error
- func StartDownstreamServer(remotePath string, excludePaths []string, reader io.Reader, writer io.Writer, ...) error
- func StartUpstreamServer(uploadPath string, excludePaths []string, reader io.Reader, writer io.Writer, ...) error
- type Downstream
- type Upstream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Downstream ¶
type Downstream struct {
// RemotePath is the path to watch for changes
RemotePath string
// contains filtered or unexported fields
}
Downstream is the implementation for the downstream server
func (*Downstream) Changes ¶
func (d *Downstream) Changes(empty *remote.Empty, stream remote.Downstream_ChangesServer) error
Changes retrieves all changes from the watchpath
func (*Downstream) ChangesCount ¶
func (d *Downstream) ChangesCount(context.Context, *remote.Empty) (*remote.ChangeAmount, error)
ChangesCount returns the amount of changes on the remote side
func (*Downstream) Download ¶
func (d *Downstream) Download(stream remote.Downstream_DownloadServer) error
Download sends the file at the temp download location to the client
Click to show internal directories.
Click to hide internal directories.