bitcask: github.com/prologic/bitcask/internal/config Index | Files

package config

import "github.com/prologic/bitcask/internal/config"

Index

Package Files

config.go

type Config Uses

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"`
}

Config contains the bitcask configuration parameters

func Load Uses

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

Load loads a configuration from the given path

func (*Config) Save Uses

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

Save saves the configuration to the provided path

Package config imports 3 packages (graph) and is imported by 1 packages. Updated 2019-09-16. Refresh now. Tools for package owners.