Documentation ¶
Overview ¶
Package datasync contains interfaces for syncing data from robots to the app.viam.com cloud.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // InitialWaitTimeMillis defines the time to wait on the first retried upload attempt. InitialWaitTimeMillis = atomic.NewInt32(1000) // RetryExponentialFactor defines the factor by which the retry wait time increases. RetryExponentialFactor = atomic.NewInt32(2) )
View Source
var UploadChunkSize = 64 * 1024
UploadChunkSize defines the size of the data included in each message of a FileUpload stream.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is responsible for enqueuing files in captureDir and uploading them to the cloud.
func NewManager ¶ added in v0.0.6
func NewManager(identity string, client v1.DataSyncServiceClient, logger golog.Logger) (Manager, error)
NewManager returns a new syncer.
func NewNoopManager ¶ added in v0.2.25
func NewNoopManager() Manager
NewNoopManager returns a noop sync manager that does nothing.
type ManagerConstructor ¶ added in v0.0.6
type ManagerConstructor func(identity string, client v1.DataSyncServiceClient, logger golog.Logger) (Manager, error)
ManagerConstructor is a function for building a Manager.
Click to show internal directories.
Click to hide internal directories.