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) }
Click to show internal directories.
Click to hide internal directories.