compactor

package
v0.0.0-...-0f21197 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compactor

type Compactor struct {
	services.Service
	// contains filtered or unexported fields
}

func NewCompactor

func NewCompactor(cfg Config, storageConfig storage.Config, r prometheus.Registerer) (*Compactor, error)

func (*Compactor) Run

func (c *Compactor) Run(ctx context.Context) error

type Config

type Config struct {
	WorkingDirectory   string        `yaml:"working_directory"`
	SharedStoreType    string        `yaml:"shared_store"`
	CompactionInterval time.Duration `yaml:"compaction_interval"`
}

func (*Config) IsDefaults

func (cfg *Config) IsDefaults() bool

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

RegisterFlags registers flags.

Jump to

Keyboard shortcuts

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