Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxSizeDefault is a default value of the object payload size limit. MaxSizeDefault = 64 << 20 // SizeLimitDefault is a default write-cache size limit. SizeLimitDefault = 1 << 30 )
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 WriteCache configurations.
func (*Config) Enabled ¶ added in v0.27.5
Enabled returns true if write-cache is enabled and false otherwise.
Panics if the value is not a boolean.
func (*Config) MaxObjectSize ¶
MaxObjectSize returns the value of "max_object_size" config parameter.
Returns MaxSizeDefault if the value is not a positive number.
func (*Config) NoSync ¶ added in v0.36.0
NoSync returns the value of "no_sync" config parameter.
Returns false if the value is not a boolean.
Click to show internal directories.
Click to hide internal directories.