config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxDatafileSize         int    `json:"max_datafile_size"`
	MaxKeySize              uint32 `json:"max_key_size"`
	MaxValueSize            uint64 `json:"max_value_size"`
	Sync                    bool   `json:"sync"`
	AutoRecovery            bool   `json:"autorecovery"`
	DBVersion               uint32 `json:"db_version"`
	DirFileModeBeforeUmask  os.FileMode
	FileFileModeBeforeUmask os.FileMode
}

Config contains the bitcask configuration parameters

func Load

func Load(path string) (*Config, error)

Load loads a configuration from the given path

func (*Config) Save

func (c *Config) Save(path string) error

Save saves the configuration to the provided path

Jump to

Keyboard shortcuts

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