prefix

package
v0.15.18 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func End

func End[V any]() proxy[V, end[V]]

func Prefix

func Prefix[V any, H any, HS key.Serializer[H], T tag[V]](
	head HS,
	tail proxy[V, T],
) proxy[V, hasPrefix[V, H, HS, T]]

Types

type Entry

type Entry[V any] struct {
	Key   []byte
	Value V
}

type PrefixedBucket

type PrefixedBucket[T tag[V], K any, V any, KS key.Serializer[K], VS value.Serializer[V]] struct {
	typed.Bucket[K, V, KS, VS]
}

func NewPrefixedBucket

func NewPrefixedBucket[T tag[V], K any, V any, KS key.Serializer[K], VS value.Serializer[V]](
	bucket typed.Bucket[K, V, KS, VS],
	prefixFactory proxy[V, T],
) PrefixedBucket[T, K, V, KS, VS]

func (*PrefixedBucket[T, K, V, KS, VS]) Prefix

func (b *PrefixedBucket[T, K, V, KS, VS]) Prefix() T

Jump to

Keyboard shortcuts

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