config

package
Version: v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 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"`
	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

Source Files

Jump to

Keyboard shortcuts

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