Documentation ¶
Index ¶
- Constants
- type Config
- func (x *Config) BlobStor() *blobstorconfig.Config
- func (x *Config) Compress() bool
- func (x *Config) GC() *gcconfig.Config
- func (x *Config) Metabase() *metabaseconfig.Config
- func (x *Config) Mode() (m mode.Mode)
- func (x *Config) Pilorama() *piloramaconfig.Config
- func (x *Config) RefillMetabase() bool
- func (x *Config) SmallSizeLimit() uint64
- func (x *Config) UncompressableContentTypes() []string
- func (x *Config) WriteCache() *writecacheconfig.Config
Constants ¶
const SmallSizeLimitDefault = 1 << 20
SmallSizeLimitDefault is a default limit of small objects payload in bytes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is a wrapper over the config section which provides access to Shard configurations.
func (*Config) BlobStor ¶
func (x *Config) BlobStor() *blobstorconfig.Config
BlobStor returns "blobstor" subsection as a blobstorconfig.Config.
func (*Config) Compress ¶ added in v0.32.0
Compress returns the value of "compress" config parameter.
Returns false if the value is not a valid bool.
func (*Config) Metabase ¶
func (x *Config) Metabase() *metabaseconfig.Config
Metabase returns "metabase" subsection as a metabaseconfig.Config.
func (*Config) Mode ¶ added in v0.27.3
Mode return the value of "mode" config parameter.
Panics if read the value is not one of predefined shard modes.
func (*Config) Pilorama ¶ added in v0.30.0
func (x *Config) Pilorama() *piloramaconfig.Config
Pilorama returns "pilorama" subsection as a piloramaconfig.Config.
func (*Config) RefillMetabase ¶ added in v0.25.0
RefillMetabase returns the value of "resync_metabase" config parameter.
Returns false if the value is not a valid bool.
func (*Config) SmallSizeLimit ¶ added in v0.32.0
SmallSizeLimit returns the value of "small_object_size" config parameter.
Returns SmallSizeLimitDefault if the value is not a positive number.
func (*Config) UncompressableContentTypes ¶ added in v0.32.0
UncompressableContentTypes returns the value of "compress_skip_content_types" config parameter.
Returns nil if a the value is missing or is invalid.
func (*Config) WriteCache ¶
func (x *Config) WriteCache() *writecacheconfig.Config
WriteCache returns "writecache" subsection as a writecacheconfig.Config.