Back to / compactor

Package compactor

Latest Go to latest

The latest major version is .

Published: Jul 14, 2017 | License: Apache-2.0 | Module:


Package compactor implements automated policies for compacting etcd's mvcc storage.


type Compactable

type Compactable interface {
	Compact(ctx context.Context, r *pb.CompactionRequest) (*pb.CompactionResponse, error)

type Periodic

type Periodic struct {
	// contains filtered or unexported fields

func NewPeriodic

func NewPeriodic(h int, rg RevGetter, c Compactable) *Periodic

func (*Periodic) Pause

func (t *Periodic) Pause()

func (*Periodic) Resume

func (t *Periodic) Resume()

func (*Periodic) Run

func (t *Periodic) Run()

func (*Periodic) Stop

func (t *Periodic) Stop()

type RevGetter

type RevGetter interface {
	Rev() int64

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier