Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SizeDefault is a default limit of estimates of Blobovnicza size. SizeDefault = 1 << 30 // ShallowDepthDefault is a default shallow dir depth. ShallowDepthDefault = 2 // ShallowWidthDefault is a default shallow dir width. ShallowWidthDefault = 16 // OpenedCacheSizeDefault is a default cache size of opened Blobovnicza's. OpenedCacheSizeDefault = 16 )
config defaults
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 Blobovnicza configurations.
func (*Config) OpenedCacheSize ¶
OpenedCacheSize returns value of "opened_cache_size" config parameter.
Returns OpenedCacheSizeDefault if value is not a positive number.
func (*Config) ShallowDepth ¶
ShallowDepth returns value of "shallow_depth" config parameter.
Returns ShallowDepthDefault if value is not a positive number.
func (*Config) ShallowWidth ¶
ShallowWidth returns value of "shallow_width" config parameter.
Returns ShallowWidthDefault if value is not a positive number.
Click to show internal directories.
Click to hide internal directories.