rdirsync

package module
v0.0.0-...-b8e7310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2016 License: MIT Imports: 20 Imported by: 0

README

rdirsync

A synchronization library between a local directory and a remote directory written in Go using gRPC.

This library is under development and the APIs might change and break compatibility.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNewRDirSyncServer

func RegisterNewRDirSyncServer(s *grpc.Server)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cc *grpc.ClientConn, option ...ClientOption) (*Client, error)

func (*Client) Fetch

func (c *Client) Fetch(ctx context.Context, remotePath, localPath string) error

func (*Client) FetchDir

func (c *Client) FetchDir(ctx context.Context, remotePath, localPath string) error

func (*Client) FetchFile

func (c *Client) FetchFile(ctx context.Context, remotePath, localPath string) error

func (*Client) Send

func (c *Client) Send(ctx context.Context, localPath, remotePath string) error

func (*Client) SendDir

func (c *Client) SendDir(ctx context.Context, localPath, remotePath string) error

func (*Client) SendFile

func (c *Client) SendFile(ctx context.Context, localPath, remotePath string) error

type ClientOption

type ClientOption func(*Client) error

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

Directories

Path Synopsis
cmd
pb
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL