gcconfig

package
v0.0.0-...-79ba347 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 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
)

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) 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.

Jump to

Keyboard shortcuts

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