shardconfig

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

func From

func From(c *config.Config) *Config

From wraps config section into Config.

func (*Config) BlobStor

func (x *Config) BlobStor() *blobstorconfig.Config

BlobStor returns "blobstor" subsection as a blobstorconfig.Config.

func (*Config) GC

func (x *Config) GC() *gcconfig.Config

GC returns "gc" subsection as a gcconfig.Config.

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

func (x *Config) Mode() (m shard.Mode)

Mode return value of "mode" config parameter.

Panics if read value is not one of predefined shard modes.

func (*Config) RefillMetabase added in v0.25.0

func (x *Config) RefillMetabase() bool

RefillMetabase returns value of "resync_metabase" config parameter.

Returns false if value is not a valid bool.

func (*Config) WriteCache

func (x *Config) WriteCache() *writecacheconfig.Config

WriteCache returns "writecache" subsection as a writecacheconfig.Config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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