Files
todoist-late-reset/internal/api/sync.go
2024-09-24 16:43:53 -05:00

29 lines
786 B
Go

package api
type ClientState struct {
// Items map[string]Item
}
type Changes struct {
Added []string
Updated []string
Deleted []string
}
// sync synchronizes the client's state with the server. If the full parameter is set to true,
// a full synchronization is performed, otherwise, a partial synchronization is done.
// This strongly mutates the client's state.
//
// Parameters:
//
// full - a boolean indicating whether to perform a full synchronization.
//
// Returns:
//
// int - the number of changes synchronized.
// *Changes - a pointer to a Changes struct containing the details of the changes.
// error - an error object if an error occurred during synchronization, otherwise nil.
func (sc *SyncClient) sync(full bool) (int, *Changes, error) {
return 0, nil, nil
}