storage

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PermDefault are default permission bits for BlobStor data.
	PermDefault = 0o640

	// DefaultFlushInterval is the default time interval between Peapod's batch writes
	// to disk.
	DefaultFlushInterval = 10 * time.Millisecond
)

Various config defaults.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config config.Config

func From

func From(x *config.Config) *Config

func (*Config) FlushInterval added in v0.44.0

func (x *Config) FlushInterval() time.Duration

FlushInterval returns the value of "flush_interval" config parameter.

Returns DefaultFlushInterval if the value is not a positive duration.

func (*Config) Path

func (x *Config) Path() string

Path returns the value of "path" config parameter.

Panics if the value is not a non-empty string.

func (*Config) Perm

func (x *Config) Perm() fs.FileMode

Perm returns the value of "perm" config parameter as a fs.FileMode.

Returns PermDefault if the value is not a non-zero number.

func (*Config) Type

func (x *Config) Type() string

Type returns storage type.

Jump to

Keyboard shortcuts

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