vsinfo

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinaryCodec     = "binary"
	BinaryJsonCodec = "binaryjson"
	JsonCodec       = "json"
)

Variables

This section is empty.

Functions

func Path

func Path(dir string) string

Types

type VStoreInfo

type VStoreInfo struct {
	// Version is the version number of this file.
	Version int
	// Type is type of value store.
	Type string
	// Codec is the type of codec used for the value store.
	Codec string
}

VStoreInfo contains information about the valuestore.

func Load

func Load(dir, vsType string) (VStoreInfo, error)

func (VStoreInfo) MakeCodec

func (v VStoreInfo) MakeCodec() (indexer.ValueCodec, error)

func (VStoreInfo) Save

func (v VStoreInfo) Save(dir string) error

Jump to

Keyboard shortcuts

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