gc

package
v0.0.0-...-959c02d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager represents the GC manager which is used to scheduler GC tasks to GC worker.

func NewManager

func NewManager(size int) *Manager

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) Run

func (m *Manager) Run()

func (*Manager) SetDB

func (m *Manager) SetDB(db *pebble.DB)

func (*Manager) SetResolver

func (m *Manager) SetResolver(resolver *resolver.Scheduler)

type Task

type Task struct {
	LowerBound kv.Key
	UpperBound kv.Key
}

Task represents a GC task which contains the key ranges to execute GC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL