gcconfig

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RemoverBatchSizeDefault is the default batch size for Shard GC's remover.
	RemoverBatchSizeDefault = 100
	// RemoverSleepIntervalDefault is the default sleep interval of Shard GC's remover.
	RemoverSleepIntervalDefault = time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GC added in v0.46.0

type GC struct {
	RemoverBatchSize     internal.Size `mapstructure:"remover_batch_size"`
	RemoverSleepInterval time.Duration `mapstructure:"remover_sleep_interval"`
}

GC contains configuration for Shard GC.

func (*GC) Normalize added in v0.46.0

func (g *GC) Normalize(def GC)

Normalize ensures that all fields of GC have valid values. If some of fields are not set or have invalid values, they will be set to default values.

Jump to

Keyboard shortcuts

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