fstree

package
v0.42.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DepthDefault = 4

DepthDefault is a default shallow dir depth.

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

func From

func From(c *config.Config) *Config

From wraps config section into Config.

func (*Config) Depth

func (x *Config) Depth() uint64

Depth returns the value of "depth" config parameter.

Returns DepthDefault if the value is out of [1:fstree.MaxDepth] range.

func (*Config) NoSync

func (x *Config) NoSync() bool

NoSync returns the value of "no_sync" config parameter.

Returns false if the value is not a boolean or is missing.

func (*Config) Type

func (x *Config) Type() string

Type returns the storage type.

Jump to

Keyboard shortcuts

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