Help us shape the future of Go! Take the 2026 Go Developer Survey

gcconfig

package
v0.46.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// RemoverBatchSizeDefault is a default batch size for Shard GC's remover.
	RemoverBatchSizeDefault = 100

	// RemoverSleepIntervalDefault is a default sleep interval of Shard GC's remover.
	RemoverSleepIntervalDefault = time.Minute

	// ExpiredCollectorWorkersCountDefault is a default workers count of Shard GC expired object collector.
	ExpiredCollectorWorkersCountDefault = 5

	// ExpiredCollectorBatchSizeDefault is a default batch size of Shard GC expired object collector.
	ExpiredCollectorBatchSizeDefault = 500
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config config.Config

Config is a wrapper over the config section which provides access to Shard's GC configurations.

func From

func From(c *config.Config) *Config

From wraps config section into Config.

func (*Config) ExpiredCollectorBatchSize

func (x *Config) ExpiredCollectorBatchSize() int

ExpiredCollectorBatchSize returns the value of "expired_collector_batch_size" config parameter.

Returns ExpiredCollectorBatchSizeDefault if the value is not a positive number.

func (*Config) ExpiredCollectorWorkerCount added in v0.38.0

func (x *Config) ExpiredCollectorWorkerCount() int

ExpiredCollectorWorkerCount returns the value of "expired_collector_worker_count" config parameter.

Returns ExpiredCollectorWorkersCountDefault if the value is not a positive number.

func (*Config) RemoverBatchSize

func (x *Config) RemoverBatchSize() int

RemoverBatchSize returns the value of "remover_batch_size" config parameter.

Returns RemoverBatchSizeDefault if the value is not a positive number.

func (*Config) RemoverSleepInterval

func (x *Config) RemoverSleepInterval() time.Duration

RemoverSleepInterval returns the value of "remover_sleep_interval" config parameter.

Returns RemoverSleepIntervalDefault if the value is not a positive number.

func (*Config) UnsafeDisabled added in v0.46.10

func (x *Config) UnsafeDisabled() bool

UnsafeDisabled returns the value of "unsafe_disabled" config parameter.

Jump to

Keyboard shortcuts

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