Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "common.object.treesyncer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PullFilter ¶
type PullFilter interface {
ShouldPull(ctx context.Context, objectId string, rootChange *treechangeproto.RawTreeChangeWithId, heads []string) bool
}
PullFilter is an optional extension of the registered TreeSyncer. When a head update arrives for a tree that does not exist locally, objectsync consults it before queueing the fetch: returning false swallows the update and the tree is not pulled. rootChange is the tree's raw root (carried by every head update; its header — including changeType — is cleartext) and heads are the sender's current heads. TreeSyncers that do not implement the interface keep the default always-pull behavior.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_treesyncer is a generated GoMock package.
|
Package mock_treesyncer is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.