Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "common.commonspace.headsync"
Variables ¶
This section is empty.
Functions ¶
func HandleRangeRequest ¶
func HandleRangeRequest(ctx context.Context, d ldiff.Diff, req *spacesyncproto.HeadSyncRequest) (resp *spacesyncproto.HeadSyncResponse, err error)
Types ¶
type Client ¶
type Client interface {
HeadSync(ctx context.Context, in *spacesyncproto.HeadSyncRequest) (*spacesyncproto.HeadSyncResponse, error)
}
type DiffSyncer ¶
type HeadSync ¶
type HeadSync interface {
app.ComponentRunnable
ExternalIds() []string
DebugAllHeads() (res []TreeHeads)
AllIds() []string
UpdateHeads(id string, heads []string)
HandleRangeRequest(ctx context.Context, req *spacesyncproto.HeadSyncRequest) (resp *spacesyncproto.HeadSyncResponse, err error)
RemoveObjects(ids []string)
}
type RemoteDiff ¶ added in v0.3.11
func NewRemoteDiff ¶
func NewRemoteDiff(spaceId string, client Client) RemoteDiff
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_headsync is a generated GoMock package.
|
Package mock_headsync is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.