jsonmutexdb

package
v0.0.0-...-185ace6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "jsonmutexdb"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir        string `json:"data_dir" split_words:"true"`
	FilenamePrefix string `json:"filename_prefix" split_words:"true"`
}

Config defines database configuration.

type LoadSaver

type LoadSaver interface {
	Load(filename string) ([]byte, error)
	Save(filename string, data []byte) error
}

func NewLoadSaver

func NewLoadSaver(dataDir string) (LoadSaver, error)

Jump to

Keyboard shortcuts

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