1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00
any-sync/commonspace/syncstatus/syncstatus.go
2024-08-20 18:27:53 +02:00

17 lines
523 B
Go

//go:generate mockgen -destination mock_syncstatus/mock_syncstatus.go github.com/anyproto/any-sync/commonspace/syncstatus StatusUpdater
package syncstatus
import (
"github.com/anyproto/any-sync/app"
)
const CName = "common.commonspace.syncstatus"
type StatusUpdater interface {
app.Component
HeadsChange(treeId string, heads []string)
HeadsReceive(senderId, treeId string, heads []string)
ObjectReceive(senderId, treeId string, heads []string)
HeadsApply(senderId, treeId string, heads []string, allAdded bool)
}