package compactor
import "github.com/coreos/etcd/compactor"
Index ¶
- type Compactable
- type Periodic
- func NewPeriodic(h int, rg RevGetter, c Compactable) *Periodic
- func (t *Periodic) Pause()
- func (t *Periodic) Resume()
- func (t *Periodic) Run()
- func (t *Periodic) Stop()
- type RevGetter
Types ¶
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 }
Source Files ¶
- Version
- v2.3.8+incompatible (latest)
- Published
- Feb 16, 2017
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 19 hours ago –
Tools for package owners.