shardconfig

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 5 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) UseWriteCache

func (x *Config) UseWriteCache() bool

UseWriteCache returns value of "use_write_cache" config parameter.

Panics 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