Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sync ¶
type Sync struct {
// contains filtered or unexported fields
}
Sync describes the Firestore sync provider.
func NewWithClient ¶
func NewWithClient(ctx context.Context, projectID string, rootDocPath string, client fsClient.ClientInterface) (*Sync, error)
NewWithClient creates a new Sync (UpdateChecker) with a provided ClientInterface client. Note: Use this one for the tests with a mock ClientInterface.
func (Sync) GetSyncTime ¶
GetSyncTime gets the time a sync occurred.
func (Sync) RecordUpdate ¶
func (f Sync) RecordUpdate(project wporg.RepoProject) error
RecordUpdate records the project.
func (Sync) SetSyncTime ¶
SetSyncTime sets the time a sync occurred.
func (Sync) UpdateCheck ¶
func (f Sync) UpdateCheck(project wporg.RepoProject) bool
UpdateCheck determines if an item should be synced.
Click to show internal directories.
Click to hide internal directories.