diskv

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package diskv implements a NanoMDM storage backend using the diskv key-value store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split2X2Transform

func Split2X2Transform(key string) []string

Split2X2Transform splits key into a path like /00/01 for a key of "0001". The key will be prefixed with zeros if its length is less than 4.

func StripPrefixTransform

func StripPrefixTransform(next diskv.TransformFunction, prefix string) diskv.TransformFunction

StripPrefixTransform wraps next in a function that trims prefix from the key.

Types

type Diskv

type Diskv struct {
	*kv.KV
}

Diskv is a storage backend that uses diskv.

func New

func New(path string) *Diskv

New creates a new storage backend that uses diskv.

Jump to

Keyboard shortcuts

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