peapodconfig

package
v0.43.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DefaultFlushInterval is a default time interval between Peapod's batch writes
	// to disk.
	DefaultFlushInterval = 10 * time.Millisecond
)

Various Peapod config defaults.

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

func From

func From(c *config.Config) *Config

From wraps config section into Config.

func (*Config) FlushInterval

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.

Jump to

Keyboard shortcuts

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