Documentation
¶
Index ¶
- type GcMapCache
- func (gc *GcMapCache) CheckSeg(ctx context.Context, blocks []*types.FileBlockInfo) (updatedBlocks []*types.FileBlockInfo, err error)
- func (gc *GcMapCache) Run() (err error)
- func (gc *GcMapCache) Stop()
- func (gc *GcMapCache) SyncGcMap(ctx context.Context, req *types.GetGcMapReq) (isNeedCheck bool, err error)
- type GcMapTreeMgr
- func (gt *GcMapTreeMgr) CheckGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (updatedBlocks []*types.FileBlockInfo, err error)
- func (gt *GcMapTreeMgr) DeleteGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (err error)
- func (gt *GcMapTreeMgr) InsertOrUpdateGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (err error)
- func (gt *GcMapTreeMgr) Stop()
- type GcMapTreeTask
- type GcMapTreeThreadPool
- type GcMapTreeWorker
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GcMapCache ¶
type GcMapCache struct { Meta *meta.Meta TreeMgr *GcMapTreeMgr // contains filtered or unexported fields }
func NewGcMapCache ¶
func (*GcMapCache) CheckSeg ¶
func (gc *GcMapCache) CheckSeg(ctx context.Context, blocks []*types.FileBlockInfo) (updatedBlocks []*types.FileBlockInfo, err error)
func (*GcMapCache) Run ¶
func (gc *GcMapCache) Run() (err error)
func (*GcMapCache) Stop ¶
func (gc *GcMapCache) Stop()
func (*GcMapCache) SyncGcMap ¶
func (gc *GcMapCache) SyncGcMap(ctx context.Context, req *types.GetGcMapReq) (isNeedCheck bool, err error)
type GcMapTreeMgr ¶
type GcMapTreeMgr struct {
// contains filtered or unexported fields
}
func NewGcMapTreeMgr ¶
func (*GcMapTreeMgr) CheckGcMapTree ¶
func (gt *GcMapTreeMgr) CheckGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (updatedBlocks []*types.FileBlockInfo, err error)
func (*GcMapTreeMgr) DeleteGcMapTree ¶
func (gt *GcMapTreeMgr) DeleteGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (err error)
func (*GcMapTreeMgr) InsertOrUpdateGcMapTree ¶
func (gt *GcMapTreeMgr) InsertOrUpdateGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (err error)
func (*GcMapTreeMgr) Stop ¶
func (gt *GcMapTreeMgr) Stop()
type GcMapTreeTask ¶
type GcMapTreeTask struct {
// contains filtered or unexported fields
}
type GcMapTreeThreadPool ¶
type GcMapTreeThreadPool struct {
// contains filtered or unexported fields
}
type GcMapTreeWorker ¶
type GcMapTreeWorker struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.