Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RetryAttempts sets the amount of default retries. RetryAttempts = 3 // LockDuration sets how long an item needs to be locked for. LockDuration time.Duration = time.Minute * 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the Provider interface.
func NewWithClient ¶
func NewWithClient(ctx context.Context, projectID string, rootDocPath string, client fsClient.ClientInterface) (*Provider, error)
NewWithClient creates a new Sync (UpdateSyncChecker) with a provided ClientInterface client. Note: Use this one for the tests with a mock ClientInterface.
func (Provider) DeleteMessage ¶
DeleteMessage deletes a Document from Firestore.
func (Provider) GetNextMessage ¶
GetNextMessage gets the next message from Firestore.
This uses Firestore transactions to update the lock time and available retries for an item.
Click to show internal directories.
Click to hide internal directories.