Documentation ¶
Index ¶
- func RegisterNewRDirSyncServer(s *grpc.Server)
- type Client
- func (c *Client) Fetch(ctx context.Context, remotePath, localPath string) error
- func (c *Client) FetchDir(ctx context.Context, remotePath, localPath string) error
- func (c *Client) FetchFile(ctx context.Context, remotePath, localPath string) error
- func (c *Client) Send(ctx context.Context, localPath, remotePath string) error
- func (c *Client) SendDir(ctx context.Context, localPath, remotePath string) error
- func (c *Client) SendFile(ctx context.Context, localPath, remotePath string) error
- type ClientOption
- func SetBufSize(bufSize int) ClientOption
- func SetFileWorkerCount(fileWorkerCount int) ClientOption
- func SetKeepDeletedFiles(keepDeletedFiles bool) ClientOption
- func SetMaxEntriesPerReadDirRPC(maxEntriesPerRPC int) ClientOption
- func SetSyncModTime(syncModTime bool) ClientOption
- func SetSyncOwnerAndGroup(syncOwnerAndGroup bool) ClientOption
- func SetUpdateOnly(updateOnly bool) ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cc *grpc.ClientConn, option ...ClientOption) (*Client, error)
type ClientOption ¶
func SetBufSize ¶
func SetBufSize(bufSize int) ClientOption
func SetFileWorkerCount ¶
func SetFileWorkerCount(fileWorkerCount int) ClientOption
func SetKeepDeletedFiles ¶
func SetKeepDeletedFiles(keepDeletedFiles bool) ClientOption
func SetMaxEntriesPerReadDirRPC ¶
func SetMaxEntriesPerReadDirRPC(maxEntriesPerRPC int) ClientOption
func SetSyncModTime ¶
func SetSyncModTime(syncModTime bool) ClientOption
func SetSyncOwnerAndGroup ¶
func SetSyncOwnerAndGroup(syncOwnerAndGroup bool) ClientOption
func SetUpdateOnly ¶
func SetUpdateOnly(updateOnly bool) ClientOption
Click to show internal directories.
Click to hide internal directories.