Documentation ¶
Overview ¶
Package datasync contains interfaces for syncing data from robots to the app.viam.com cloud.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶ added in v0.0.6
func NewClient(conn rpc.ClientConn) v1.DataSyncServiceClient
NewClient constructs a new v1.DataSyncServiceClient using the passed in connection.
func NewConnection ¶ added in v0.0.6
func NewConnection(logger *zap.SugaredLogger, address string, rpcOpts []rpc.DialOption) (rpc.ClientConn, error)
NewConnection builds a connection to the passed address with the passed rpcOpts.
Types ¶
type Manager ¶
type Manager interface { Sync(paths []string) Close() }
Manager is responsible for enqueuing files in captureDir and uploading them to the cloud.
func NewDefaultManager ¶ added in v0.0.6
NewDefaultManager returns the default Manager that syncs data to app.viam.com.
func NewManager ¶ added in v0.0.6
func NewManager(logger golog.Logger, partID string, client v1.DataSyncServiceClient, conn rpc.ClientConn, ) (Manager, error)
NewManager returns a new syncer.
Click to show internal directories.
Click to hide internal directories.