Documentation
¶
Index ¶
- func ScanToken(scanner *bufio.Scanner) (string, bool)
- type Client
- func (c *Client) CheckIfFileIsUpToDate(fileNameLocal, fileNameRemote, storagePath string) (bool, error)
- func (c *Client) Close()
- func (c *Client) Connect(addr string) error
- func (c *Client) DownloadFile(fileNameRemote, fileNameLocal, storagePath string) (bool, error)
- func (c *Client) UploadFile(fileNameSrc, fileNameDst string) error
- type ProgressWriter
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CheckIfFileIsUpToDate ¶
func (*Client) DownloadFile ¶
DownloadFile tries to download the file. If it returns `true, nil` then a new file has been downloaded. Otherwise there was either an error or the file hasn't changed.
func (*Client) UploadFile ¶
type ProgressWriter ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.