writecacheconfig

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxSizeDefault is the default value of the object payload size limit.
	MaxSizeDefault = 64 << 20
	// SizeLimitDefault is the default write-cache size limit.
	SizeLimitDefault = 1 << 30
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WriteCache added in v0.46.0

type WriteCache struct {
	Enabled       *bool         `mapstructure:"enabled"`
	Path          string        `mapstructure:"path"`
	Capacity      internal.Size `mapstructure:"capacity"`
	NoSync        *bool         `mapstructure:"no_sync"`
	MaxObjectSize internal.Size `mapstructure:"max_object_size"`
}

WriteCache contains configuration for write cache.

func (*WriteCache) Normalize added in v0.46.0

func (wc *WriteCache) Normalize(def WriteCache)

Normalize sets default values for write cache fields if they are not set.

Jump to

Keyboard shortcuts

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